make clicking on 'create trip' button more robust (clicked on notification as this was the first .relative element
This commit is contained in:
parent
8f2d1ef6f4
commit
2ad5f0883c
@ -8,7 +8,7 @@ test("cox can create and delete trip", async ({ page }) => {
|
|||||||
await page.getByPlaceholder("Passwort").fill("cox");
|
await page.getByPlaceholder("Passwort").fill("cox");
|
||||||
await page.getByPlaceholder("Passwort").press("Enter");
|
await page.getByPlaceholder("Passwort").press("Enter");
|
||||||
await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click();
|
await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click();
|
||||||
await page.locator(".relative").first().click();
|
await page.locator('a[href="#"]:has-text("Ausfahrt")').first().click();
|
||||||
await page.locator("#sidebar #planned_starting_time").click();
|
await page.locator("#sidebar #planned_starting_time").click();
|
||||||
await page.locator("#sidebar #planned_starting_time").fill("18:00");
|
await page.locator("#sidebar #planned_starting_time").fill("18:00");
|
||||||
await page.locator("#sidebar #planned_starting_time").press("Tab");
|
await page.locator("#sidebar #planned_starting_time").press("Tab");
|
||||||
@ -38,8 +38,8 @@ test.describe("cox can edit trips", () => {
|
|||||||
await page.getByPlaceholder("Name").press("Tab");
|
await page.getByPlaceholder("Name").press("Tab");
|
||||||
await page.getByPlaceholder("Passwort").fill("cox");
|
await page.getByPlaceholder("Passwort").fill("cox");
|
||||||
await page.getByPlaceholder("Passwort").press("Enter");
|
await page.getByPlaceholder("Passwort").press("Enter");
|
||||||
await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click();
|
await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click();
|
||||||
await page.locator(".relative").first().click();
|
await page.locator('a[href="#"]:has-text("Ausfahrt")').first().click();
|
||||||
await page.locator("#sidebar #planned_starting_time").click();
|
await page.locator("#sidebar #planned_starting_time").click();
|
||||||
await page.locator("#sidebar #planned_starting_time").fill("18:00");
|
await page.locator("#sidebar #planned_starting_time").fill("18:00");
|
||||||
await page.locator("#sidebar #planned_starting_time").press("Tab");
|
await page.locator("#sidebar #planned_starting_time").press("Tab");
|
||||||
|
Loading…
Reference in New Issue
Block a user