Add ability to change participant's name (#577)

This commit is contained in:
Luke Vella 2023-03-17 19:00:14 +00:00 committed by GitHub
parent 05d2c7b1d0
commit cb52adab01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 406 additions and 261 deletions

View file

@ -21,11 +21,14 @@ test("should be able to vote and comment on a poll", async ({ page }) => {
page.locator("data-testid=participant-selector").locator("text=You"),
).toBeVisible();
await page.click("text=Edit");
await page.getByTestId("participant-menu").click();
await page.getByText("Edit votes").click();
await page.click("data-testid=poll-option >> nth=1");
await page.click("text=Save");
await page.click("data-testid=delete-participant-button");
await page.getByTestId("participant-menu").click();
await page.locator("button", { hasText: "Delete" }).click();
const modal = page.getByTestId("modal");
await modal.locator("button", { hasText: "Delete" }).click();
await expect(page.locator("text='Test user'")).not.toBeVisible();
});