Skip to content

Commit

Permalink
test(label): add component token E2E tests (#9594)
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 d6161bd commit b6ae2ad
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion packages/calcite-components/src/components/label/label.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { newE2EPage } from "@stencil/core/testing";
import { renders, hidden } from "../../tests/commonTests";
import { renders, hidden, themed } from "../../tests/commonTests";
import { CSS } from "./resources";

describe("calcite-label", () => {
describe("renders", () => {
Expand Down Expand Up @@ -179,4 +180,28 @@ describe("calcite-label", () => {

expect(eventDetail).toBeTruthy();
});

describe("theme", () => {
describe("default", () => {
themed("calcite-label", {
"--calcite-label-space-y-end": {
shadowSelector: `.${CSS.container}`,
targetProp: "marginBlockEnd",
},
"--calcite-label-text-color": {
shadowSelector: `.${CSS.container}`,
targetProp: "color",
},
});
});

describe("deprecated", () => {
themed("calcite-label", {
"--calcite-label-margin-bottom": {
shadowSelector: `.${CSS.container}`,
targetProp: "marginBlockEnd",
},
});
});
});
});

0 comments on commit b6ae2ad

Please sign in to comment.