E2E and paid bookings fixes
This commit is contained in:
1 parent
f2988870d5
commit
06702aa48a
8 files changed
+16
-6
No files matched your search
@@ -85,7 +85,7 @@ test.describe("pro user", () => {
|
||||
|
||||
test("pro user's page has at least 2 visible events", async ({ page }) => {
|
||||
// await page.pause();
|
||||
const $eventTypes = await page.locator("[data-testid=event-types] > *");
|
||||
const $eventTypes = page.locator("[data-testid=event-types] > *");
|
||||
expect(await $eventTypes.count()).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
|
||||
@@ -102,7 +102,7 @@ test.describe("pro user", () => {
|
||||
await bookFirstEvent(page);
|
||||
|
||||
await page.goto("/bookings/upcoming");
|
||||
await page.locator('[data-testid="reschedule"]').click();
|
||||
await page.locator('[data-testid="reschedule"]').nth(0).click();
|
||||
await page.locator('[data-testid="edit"]').click();
|
||||
await page.waitForNavigation({
|
||||
url: (url) => {
|
||||
|
||||
@@ -8,6 +8,8 @@ import {
|
||||
selectSecondAvailableTimeSlotNextMonth,
|
||||
} from "./lib/testUtils";
|
||||
|
||||
test.describe.configure({ mode: "parallel" });
|
||||
|
||||
test.describe("dynamic booking", () => {
|
||||
test.use({ storageState: "playwright/artifacts/proStorageState.json" });
|
||||
|
||||
@@ -17,7 +19,7 @@ test.describe("dynamic booking", () => {
|
||||
await page.goto("/pro+free");
|
||||
});
|
||||
|
||||
test.afterAll(async () => {
|
||||
test.afterEach(async () => {
|
||||
// delete test bookings
|
||||
await deleteAllBookingsByEmail("[email protected]");
|
||||
await deleteAllBookingsByEmail("[email protected]");
|
||||
@@ -36,7 +38,7 @@ test.describe("dynamic booking", () => {
|
||||
|
||||
// Logged in
|
||||
await page.goto("/bookings/upcoming");
|
||||
await page.locator('[data-testid="reschedule"]').click();
|
||||
await page.locator('[data-testid="reschedule"]').nth(0).click();
|
||||
await page.locator('[data-testid="edit"]').click();
|
||||
await page.waitForNavigation({
|
||||
url: (url) => {
|
||||
|
||||
@@ -58,7 +58,7 @@ test.describe("Reschedule Tests", async () => {
|
||||
|
||||
await page.goto("/bookings/upcoming");
|
||||
|
||||
await page.locator('[data-testid="reschedule"]').click();
|
||||
await page.locator('[data-testid="reschedule"]').nth(0).click();
|
||||
|
||||
await page.locator('[data-testid="reschedule_request"]').click();
|
||||
|
||||
|
||||
Reference in new issue
Block a user