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:
Jason committed 2026-10-09 22:15:02 +08:00
1 parent c5efe0baaa
commit ee50c12b81
1 file changed
+2 -2
+2 -2
View File
@@ -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");
}
});
});