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