Skip to content

Commit c6991b3

Browse files
committed
fix: use exact match for Theme text in e2e test
1 parent e5abc58 commit c6991b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/scenarios/settings.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test.describe("Settings Modal", () => {
2222
await expect(page.getByRole("button", { name: "Models", exact: true })).toBeVisible();
2323

2424
// Verify default section is General (theme toggle visible)
25-
await expect(page.getByText("Theme")).toBeVisible();
25+
await expect(page.getByText("Theme", { exact: true })).toBeVisible();
2626
});
2727

2828
test("navigates between settings sections", async ({ ui, page }) => {
@@ -39,7 +39,7 @@ test.describe("Settings Modal", () => {
3939

4040
// Navigate back to General
4141
await ui.settings.selectSection("General");
42-
await expect(page.getByText("Theme")).toBeVisible();
42+
await expect(page.getByText("Theme", { exact: true })).toBeVisible();
4343
});
4444

4545
test("closes settings with Escape key", async ({ ui }) => {

0 commit comments

Comments
 (0)