Buckets:
| import { nextTestSetup } from 'e2e-utils' | |
| // CSS data urls are only support in Turbopack | |
| ;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)( | |
| 'css-modules-data-urls', | |
| () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should apply rsc class name from data url correctly', async () => { | |
| const browser = await next.browser('/') | |
| const clientElementClass = | |
| (await browser.elementByCss('#client').getAttribute('class')) || '' | |
| expect(clientElementClass).not.toBe('') | |
| }) | |
| it('should apply rsc styles from data url correctly', async () => { | |
| const browser = await next.browser('/') | |
| const rscElement = await browser | |
| .elementByCss('#rsc') | |
| .getComputedCss('font-weight') | |
| expect(rscElement).toBe('700') | |
| }) | |
| it('should apply client class name from data url correctly', async () => { | |
| const browser = await next.browser('/') | |
| const clientElementClass = | |
| (await browser.elementByCss('#client').getAttribute('class')) || '' | |
| expect(clientElementClass).not.toBe('') | |
| }) | |
| it('should apply client styles from data url correctly', async () => { | |
| const browser = await next.browser('/') | |
| const clientElement = await browser | |
| .elementByCss('#client') | |
| .getComputedCss('font-weight') | |
| expect(clientElement).toBe('700') | |
| }) | |
| } | |
| ) | |
Xet Storage Details
- Size:
- 1.4 kB
- Xet hash:
- f32b2b50df11c436163a4a7b866e2518f8179940e1ba607de64d9f57fb12d3b6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.