silverwolf-x/project / test /e2e /app-dir /duplicate-layout-components /duplicate-layout-components.test.ts
silverwolf-x's picture
download
raw
635 Bytes
import { nextTestSetup } from 'e2e-utils'
describe('app dir - duplicate layout components', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) {
return
}
it('should not duplicate layout elements when navigating to 404', async () => {
const browser = await next.browser('/solutions/404')
// Verify counts haven't changed - no duplication
expect((await browser.elementsByCss('body')).length).toBe(1)
expect((await browser.elementsByCss('#header')).length).toBe(1)
expect((await browser.elementsByCss('#footer')).length).toBe(1)
})
})

Xet Storage Details

Size:
635 Bytes
·
Xet hash:
7770cad4525b5700113dde4f0458a701bc0a7bfe3d7bb887a216f9755bbe2057

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.