Compare commits
No commits in common. "3b9d743603865d0e2e764666cad8fa5f22f0a6af" and "292e944783d527f72b852141f59c90e59f48700f" have entirely different histories.
3b9d743603
...
292e944783
@ -75,15 +75,13 @@ test("Cox can start and finish trip", async ({ page }, testInfo) => {
|
|||||||
|
|
||||||
await page.goto("/log");
|
await page.goto("/log");
|
||||||
await page.locator("div:nth-child(2) > .border-0").click();
|
await page.locator("div:nth-child(2) > .border-0").click();
|
||||||
|
|
||||||
// Add a minute
|
// Add a minute
|
||||||
const datetimeSelector = '#arrivaljs';
|
await page.locator('#arrivaljs').click();
|
||||||
const currentValue = await page.$eval(datetimeSelector, el => el.value);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
const currentDate = new Date(currentValue);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
currentDate.setMinutes(currentDate.getMinutes() + 1);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
currentDate.setHours(currentDate.getHours() + 1);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
const newDatetime = currentDate.toISOString().slice(0, 16);
|
await page.locator('#arrivaljs').press('ArrowUp');
|
||||||
await page.$eval(datetimeSelector, (el, value) => el.value = value, newDatetime);
|
|
||||||
|
|
||||||
await page.getByRole("combobox", { name: "Destination" }).click();
|
await page.getByRole("combobox", { name: "Destination" }).click();
|
||||||
await page.getByRole("combobox", { name: "Destination" }).fill("Ottensheim");
|
await page.getByRole("combobox", { name: "Destination" }).fill("Ottensheim");
|
||||||
@ -161,13 +159,12 @@ test("Kiosk can start and finish trip", async ({ page }, testInfo) => {
|
|||||||
await page.locator('div:nth-child(2) > .pt-2 > div > div > div:nth-child(2) > .border-0').click(); // 2 trips currently running, try to close second one
|
await page.locator('div:nth-child(2) > .pt-2 > div > div > div:nth-child(2) > .border-0').click(); // 2 trips currently running, try to close second one
|
||||||
|
|
||||||
// Add a minute
|
// Add a minute
|
||||||
const datetimeSelector = '#arrivaljs';
|
await page.locator('#arrivaljs').click();
|
||||||
const currentValue = await page.$eval(datetimeSelector, el => el.value);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
const currentDate = new Date(currentValue);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
currentDate.setMinutes(currentDate.getMinutes() + 1);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
currentDate.setHours(currentDate.getHours() + 1);
|
await page.locator('#arrivaljs').press('Tab');
|
||||||
const newDatetime = currentDate.toISOString().slice(0, 16);
|
await page.locator('#arrivaljs').press('ArrowUp');
|
||||||
await page.$eval(datetimeSelector, (el, value) => el.value = value, newDatetime);
|
|
||||||
|
|
||||||
await page.getByRole("combobox", { name: "Destination" }).click();
|
await page.getByRole("combobox", { name: "Destination" }).click();
|
||||||
await page.getByRole("combobox", { name: "Destination" }).fill("Ottensheim");
|
await page.getByRole("combobox", { name: "Destination" }).fill("Ottensheim");
|
||||||
|
Loading…
Reference in New Issue
Block a user