mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
10 lines
357 B
TypeScript
10 lines
357 B
TypeScript
import { getColor, untilUpdated } from '../../testUtils'
|
|
|
|
test('should have css applied on second dynamic import', async () => {
|
|
await untilUpdated(() => page.textContent('.content'), 'Initial', true)
|
|
await page.click('.b')
|
|
|
|
await untilUpdated(() => page.textContent('.content'), 'Reference', true)
|
|
expect(await getColor('.content')).toBe('red')
|
|
})
|