mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
0dbe761e52
Co-authored-by: Jiwon Choi <devjiwonchoi@gmail.com>
18 lines
494 B
TypeScript
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')
|
|
})
|
|
})
|