mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 11:22:43 +00:00
test: use correct test id
This commit is contained in:
parent
df1d397bf7
commit
ef927bb9b0
@ -33,7 +33,7 @@ describe('spaLoadingTemplateLocation flag is set to `within`', () => {
|
|||||||
const page = await browser.newPage({})
|
const page = await browser.newPage({})
|
||||||
await page.goto(url('/spa'), { waitUntil: 'domcontentloaded' })
|
await page.goto(url('/spa'), { waitUntil: 'domcontentloaded' })
|
||||||
|
|
||||||
const loader = page.getByTestId('__nuxt-spa-loader')
|
const loader = page.getByTestId('loader')
|
||||||
expect(await loader.isHidden()).toBeTruthy()
|
expect(await loader.isHidden()).toBeTruthy()
|
||||||
|
|
||||||
await page.close()
|
await page.close()
|
||||||
|
@ -40,7 +40,7 @@ describe('spaLoadingTemplateLocation flag is set to `body`', () => {
|
|||||||
const page = await browser.newPage({})
|
const page = await browser.newPage({})
|
||||||
await page.goto(url('/ssr'), { waitUntil: 'domcontentloaded' })
|
await page.goto(url('/ssr'), { waitUntil: 'domcontentloaded' })
|
||||||
|
|
||||||
const loader = page.getByTestId('__nuxt-spa-loader')
|
const loader = page.getByTestId('loader')
|
||||||
expect(await loader.isHidden()).toBeTruthy()
|
expect(await loader.isHidden()).toBeTruthy()
|
||||||
|
|
||||||
const content = page.getByTestId('content')
|
const content = page.getByTestId('content')
|
||||||
|
Loading…
Reference in New Issue
Block a user