mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🩹 Fix broken e2e tests
This commit is contained in:
parent
c07600aeb1
commit
dfc785f2d1
1 changed files with 7 additions and 7 deletions
|
@ -46,7 +46,7 @@ test.describe.serial(() => {
|
||||||
.getByPlaceholder("jessie.smith@example.com")
|
.getByPlaceholder("jessie.smith@example.com")
|
||||||
.type(testUserEmail);
|
.type(testUserEmail);
|
||||||
|
|
||||||
await page.getByText("Continue").click();
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
// Make sure the user doesn't exist yet and that logging in is not possible
|
// Make sure the user doesn't exist yet and that logging in is not possible
|
||||||
await expect(
|
await expect(
|
||||||
|
@ -64,7 +64,7 @@ test.describe.serial(() => {
|
||||||
.getByPlaceholder("jessie.smith@example.com")
|
.getByPlaceholder("jessie.smith@example.com")
|
||||||
.type(testUserEmail);
|
.type(testUserEmail);
|
||||||
|
|
||||||
await page.click("text=Continue");
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
const codeInput = page.getByPlaceholder("Enter your 6-digit code");
|
const codeInput = page.getByPlaceholder("Enter your 6-digit code");
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ test.describe.serial(() => {
|
||||||
|
|
||||||
await codeInput.type(code);
|
await codeInput.type(code);
|
||||||
|
|
||||||
await page.getByText("Continue").click();
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
await page.waitForURL("/polls");
|
await page.waitForURL("/polls");
|
||||||
});
|
});
|
||||||
|
@ -91,7 +91,7 @@ test.describe.serial(() => {
|
||||||
.getByPlaceholder("jessie.smith@example.com")
|
.getByPlaceholder("jessie.smith@example.com")
|
||||||
.type(testUserEmail);
|
.type(testUserEmail);
|
||||||
|
|
||||||
await page.click("text=Continue");
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.getByText("A user with that email already exists"),
|
page.getByText("A user with that email already exists"),
|
||||||
|
@ -111,7 +111,7 @@ test.describe.serial(() => {
|
||||||
.getByPlaceholder("jessie.smith@example.com")
|
.getByPlaceholder("jessie.smith@example.com")
|
||||||
.type(testUserEmail);
|
.type(testUserEmail);
|
||||||
|
|
||||||
await page.getByText("Continue").click();
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
const { email } = await mailServer.captureOne(testUserEmail, {
|
const { email } = await mailServer.captureOne(testUserEmail, {
|
||||||
wait: 5000,
|
wait: 5000,
|
||||||
|
@ -139,13 +139,13 @@ test.describe.serial(() => {
|
||||||
.getByPlaceholder("jessie.smith@example.com")
|
.getByPlaceholder("jessie.smith@example.com")
|
||||||
.type(testUserEmail);
|
.type(testUserEmail);
|
||||||
|
|
||||||
await page.getByText("Continue").click();
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
const code = await getCode();
|
const code = await getCode();
|
||||||
|
|
||||||
await page.getByPlaceholder("Enter your 6-digit code").type(code);
|
await page.getByPlaceholder("Enter your 6-digit code").type(code);
|
||||||
|
|
||||||
await page.getByText("Continue").click();
|
await page.getByRole("button", { name: "Continue" }).click();
|
||||||
|
|
||||||
await page.waitForURL("/polls");
|
await page.waitForURL("/polls");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue