Skip to content

Commit 594e7f9

Browse files
committed
Add UI tests
1 parent 5ebc930 commit 594e7f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/tailwindcss/tests/ui.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,9 @@ test('text shadow colors', async ({ page }) => {
419419
>
420420
Hello world
421421
</div>
422+
423+
<div id="f" class="text-shadow-xs/75">Hello world</div>
424+
<div id="g" class="text-shadow-xs/75 text-shadow-red/75">Hello world</div>
422425
`,
423426
)
424427

@@ -435,6 +438,11 @@ test('text shadow colors', async ({ page }) => {
435438
/oklab\(0.627\d+ 0.224\d+ 0.125\d+\) 0px 1px 1px/,
436439
)
437440

441+
expect(await getPropertyValue('#f', 'text-shadow')).toMatch(/oklab\(0 0 0 \/ 0.75\) 0px 1px 1px/)
442+
expect(await getPropertyValue('#g', 'text-shadow')).toMatch(
443+
/oklab\(0.627\d+ 0.224\d+ 0.125\d+ \/ 0.56\d+\) 0px 1px 1px/,
444+
)
445+
438446
await page.locator('#d').hover()
439447

440448
expect(await getPropertyValue('#d', 'text-shadow')).toMatch(

0 commit comments

Comments
 (0)