Files
vercel__next.js/test/e2e/app-dir/next-script/next-script.test.ts
2024-07-05 15:13:00 +02:00

18 lines
494 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('Script component with crossOrigin props', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should be set crossOrigin also in preload link tag', async () => {
const browser = await next.browser('/')
const crossorigin = await browser
.elementByCss('link[href="https://code.jquery.com/jquery-3.7.1.min.js"]')
.getAttribute('crossorigin')
expect(crossorigin).toBe('use-credentials')
})
})