Skip to content

Commit

Permalink
test(icon): add component token E2E tests (#9595)
Browse files Browse the repository at this point in the history
**Related Issue:** #7180

## Summary

✨🧪✨
  • Loading branch information
jcfranco authored Jun 18, 2024
1 parent b6ae2ad commit a6750dc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/calcite-components/src/components/icon/icon.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { newE2EPage } from "@stencil/core/testing";
import { accessible, defaults, hidden, reflects, renders } from "../../tests/commonTests";
import { accessible, defaults, hidden, reflects, renders, themed } from "../../tests/commonTests";
import { CSS } from "./resources";
import { scaleToPx } from "./utils";

Expand Down Expand Up @@ -106,4 +106,22 @@ describe("calcite-icon", () => {
);
});
});

describe("theme", () => {
describe("default", () => {
themed("calcite-icon", {
"--calcite-icon-color": {
targetProp: "color",
},
});
});

describe("deprecated", () => {
themed("calcite-icon", {
"--calcite-ui-icon-color": {
targetProp: "color",
},
});
});
});
});

0 comments on commit a6750dc

Please sign in to comment.