mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
30 lines
766 B
TypeScript
30 lines
766 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('app dir - css with pageextensions', () => {
|
|
const { next, skipped } = nextTestSetup({
|
|
files: __dirname,
|
|
skipDeployment: true,
|
|
dependencies: {
|
|
'@picocss/pico': '1.5.7',
|
|
sass: 'latest',
|
|
},
|
|
})
|
|
|
|
if (skipped) {
|
|
return
|
|
}
|
|
|
|
describe('css support with pageextensions', () => {
|
|
describe('page in app directory with pageextention, css should work', () => {
|
|
it('should support global css inside layout', async () => {
|
|
const browser = await next.browser('/css-pageextensions')
|
|
expect(
|
|
await browser.eval(
|
|
`window.getComputedStyle(document.querySelector('h1')).color`
|
|
)
|
|
).toBe('rgb(255, 0, 0)')
|
|
})
|
|
})
|
|
})
|
|
})
|