Skip to content

Commit

Permalink
test: fix selectors
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Mar 13, 2024
1 parent f910148 commit 5bff541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions e2e/happyPath.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { expect, test } from "@playwright/test";
test("should complete the happy path", async ({ page, isMobile }) => {
await page.goto("/");

// "should show landing page
await expect(page.getByText("new")).toBeVisible();
// should show landing page
await expect(page.getByText("get started")).toBeVisible();
await expect(page.getByText("help")).toBeVisible();

// should create new budget
await page.getByText("new").click();
await page.getByText("get started").click();

await expect(page.getByText("Statistics")).toBeVisible();
await expect(page.getByText("Revenue")).toBeVisible();
Expand Down
2 changes: 1 addition & 1 deletion e2e/settingsHappyPath.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test("should complete the settings happy path", async ({ page, isMobile }) => {
await page.goto("/");

// should show charts page
await page.getByText("new").click();
await page.getByText("get started").click();
await page.locator("#Expenses-1-name").click();
await page.locator("#Expenses-1-name").fill("rent");
await page.locator("#Expenses-1-name").press("Tab");
Expand Down

0 comments on commit 5bff541

Please sign in to comment.