mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-23 11:17:26 +02:00
Keep demo values fixed
This commit is contained in:
parent
53906b1acf
commit
e032f6f993
5 changed files with 83 additions and 42 deletions
18
tests/edit-options.spec.ts
Normal file
18
tests/edit-options.spec.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { expect, test } from "@playwright/test";
|
||||
|
||||
test("should show warning when deleting options with votes in them", async ({
|
||||
page,
|
||||
}) => {
|
||||
await page.goto("/demo");
|
||||
|
||||
await expect(page.locator('text="Lunch Meeting Demo"')).toBeVisible();
|
||||
|
||||
await page.click("text='Manage'");
|
||||
await page.click("text='Edit options'");
|
||||
await page.click("[data-testid='specify-times-switch']");
|
||||
await page.click("text='12:00 PM'");
|
||||
await page.click("text='1:00 PM'");
|
||||
await page.click("text='Save'");
|
||||
await expect(page.locator('text="Are you sure?"')).toBeVisible();
|
||||
await page.click("text='Delete'");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue