Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Aug 26, 2024
1 parent ceaa127 commit f314a9a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion tests/language.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test("Language", async ({ page }) => {
await page.getByRole("cell", { name: "Nederlands" }).click();
await page.getByRole("button", { name: "Mijn projecten" }).click();
await page.getByRole("cell", { name: "Nieuw" }).click();
await selectRobot(page, "Leaphy Original", "Original Nano ESP32", "Ga door");
await selectRobot(page, "Leaphy Original", "Original Nano ESP32");
await expect(page.getByText("Lees afstand")).toBeVisible();
await expect(page.getByText("Lees anapin")).toBeVisible();
await expect(page.getByText("Lees gas")).toBeVisible();
Expand Down
2 changes: 0 additions & 2 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ export async function selectRobot(
page: Page,
tile: string,
robot: string,
continueName = "Continue",
) {
await page.getByText(tile).click();
await page.getByText(robot).click();
await page.getByText(continueName).click();
}

export async function setupArduino({ page }: PlaywrightTestArgs) {
Expand Down

0 comments on commit f314a9a

Please sign in to comment.