We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd66ac2 commit 7a53b1fCopy full SHA for 7a53b1f
playground/rolldown-dev-react/__tests__/basic.spec.ts
@@ -1,4 +1,4 @@
1
-import { test } from 'vitest'
+import { expect, test } from 'vitest'
2
import { editFile, isBuild, page, viteTestUrl } from '../../test-utils'
3
4
test('basic', async () => {
@@ -10,6 +10,24 @@ test('basic', async () => {
10
await page.getByText('[alias] test-alias-dest:ok').click()
11
})
12
13
+test('style', async () => {
14
+ expect(
15
+ await page
16
+ .locator('.test-style')
17
+ .evaluate((el) => getComputedStyle(el).color),
18
+ ).toBe('rgb(255, 165, 0)')
19
20
21
+ .locator('.test-style-url')
22
23
24
25
26
+ .locator('.test-style-inline')
27
28
29
+})
30
+
31
test.runIf(!isBuild)('hmr', async () => {
32
await page.goto(viteTestUrl)
33
await page.getByRole('button', { name: 'Count: 0' }).click()
0 commit comments