fix(vite): nested island css module styles not working (#3353)
Related https://github.com/denoland/fresh/issues/3325
This commit is contained in:
@@ -269,11 +269,23 @@ Deno.test({
|
||||
waitUntil: "networkidle2",
|
||||
});
|
||||
|
||||
const color = await page
|
||||
.locator("h1")
|
||||
let color = await page
|
||||
.locator(".red > h1")
|
||||
// deno-lint-ignore no-explicit-any
|
||||
.evaluate((el) => window.getComputedStyle(el as any).color);
|
||||
expect(color).toEqual("rgb(255, 0, 0)");
|
||||
|
||||
color = await page
|
||||
.locator(".green > h1")
|
||||
// deno-lint-ignore no-explicit-any
|
||||
.evaluate((el) => window.getComputedStyle(el as any).color);
|
||||
expect(color).toEqual("rgb(0, 128, 0)");
|
||||
|
||||
color = await page
|
||||
.locator(".blue > h1")
|
||||
// deno-lint-ignore no-explicit-any
|
||||
.evaluate((el) => window.getComputedStyle(el as any).color);
|
||||
expect(color).toEqual("rgb(0, 0, 255)");
|
||||
});
|
||||
},
|
||||
sanitizeResources: false,
|
||||
|
||||
Reference in New Issue
Block a user