-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.greenText { | ||
color: green; | ||
color: rgb(0, 129, 0); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { expect, test } from '@playwright/test' | ||
|
||
test('Should load CSS modules correctly', async ({ page }) => { | ||
await page.goto('styles/css-modules.html') | ||
await expect(page.locator('#e2e-theme-css-modules-scss')).toHaveText('234px') | ||
Check failure on line 5 in e2e/tests/styles/css-modules.spec.ts
|
||
await expect(page.locator('#e2e-theme-css-modules-css')).toHaveCSS( | ||
'color', | ||
'rgb(0, 129, 0)', | ||
) | ||
}) |