mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-25 17:22:27 +08:00
test(apps): expect the action color on the apps page visibility switches
8919d05cb dropped the neutral switch tone but left the apps page test
asserting data-tone="neutral". Assert that the visibility switches no
longer carry a tone.
This commit is contained in:
1 parent
c5efe0baaa
commit
ee50c12b81
1 file changed
+2
-2
@@ -896,7 +896,7 @@ describe("AppsPage concurrent CLI upgrades", () => {
|
||||
});
|
||||
|
||||
describe("AppsPage visibility column", () => {
|
||||
it("renders the sidebar visibility switches small and neutral", async () => {
|
||||
it("renders the sidebar visibility switches small with the action color", async () => {
|
||||
vi.resetModules();
|
||||
await renderApps();
|
||||
const switches = screen.getAllByRole("switch", {
|
||||
@@ -905,7 +905,7 @@ describe("AppsPage visibility column", () => {
|
||||
expect(switches.length).toBeGreaterThan(0);
|
||||
for (const element of switches) {
|
||||
expect(element).toHaveAttribute("data-size", "sm");
|
||||
expect(element).toHaveAttribute("data-tone", "neutral");
|
||||
expect(element).not.toHaveAttribute("data-tone");
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user