mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
24 lines
730 B
TypeScript
24 lines
730 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('global-not-found - css', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should include css for global-not-found properly', async () => {
|
|
const browser = await next.browser('/does-not-exist')
|
|
|
|
// This css import is shared with `/` route's layout
|
|
const textColorOrange = await browser
|
|
.elementByCss('.orange-text')
|
|
.getComputedCss('color')
|
|
expect(textColorOrange).toBe('rgb(255, 165, 0)')
|
|
|
|
// This css import is only used in the global-not-found convention
|
|
const textColorRed = await browser
|
|
.elementByCss('.blue-text')
|
|
.getComputedCss('color')
|
|
expect(textColorRed).toBe('rgb(0, 0, 255)')
|
|
})
|
|
})
|