test: use correct test id

This commit is contained in:
Daniel Roe 2024-11-27 14:33:56 +00:00
parent df1d397bf7
commit ef927bb9b0
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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')