Fix: Show smsReminderNumber on booking success page (#8596)
This commit is contained in:
1 parent
9ba90e18de
commit
ada88a2f7e
18 files changed
+83
-137
No files matched your search
@@ -130,9 +130,7 @@ test.describe("Routing Forms", () => {
|
||||
// Install app
|
||||
await page.goto(`/apps/routing-forms`);
|
||||
await page.click('[data-testid="install-app-button"]');
|
||||
await page.waitForNavigation({
|
||||
url: (url) => url.pathname === `/apps/routing-forms/forms`,
|
||||
});
|
||||
await page.waitForURL((url) => url.pathname === `/apps/routing-forms/forms`);
|
||||
});
|
||||
|
||||
test.afterEach(async ({ users }) => {
|
||||
@@ -163,9 +161,7 @@ test.describe("Routing Forms", () => {
|
||||
// Install app
|
||||
await page.goto(`/apps/routing-forms`);
|
||||
await page.click('[data-testid="install-app-button"]');
|
||||
await page.waitForNavigation({
|
||||
url: (url) => url.pathname === `/apps/routing-forms/forms`,
|
||||
});
|
||||
await page.waitForURL((url) => url.pathname === `/apps/routing-forms/forms`);
|
||||
return user;
|
||||
};
|
||||
|
||||
@@ -260,17 +256,13 @@ test.describe("Routing Forms", () => {
|
||||
// Router should be publicly accessible
|
||||
await users.logout();
|
||||
page.goto(`/router?form=${routingForm.id}&Test field=event-routing`);
|
||||
await page.waitForNavigation({
|
||||
url(url) {
|
||||
return url.pathname.endsWith("/pro/30min");
|
||||
},
|
||||
await page.waitForURL((url) => {
|
||||
return url.pathname.endsWith("/pro/30min");
|
||||
});
|
||||
|
||||
page.goto(`/router?form=${routingForm.id}&Test field=external-redirect`);
|
||||
await page.waitForNavigation({
|
||||
url(url) {
|
||||
return url.hostname.includes("google.com");
|
||||
},
|
||||
await page.waitForURL((url) => {
|
||||
return url.hostname.includes("google.com");
|
||||
});
|
||||
|
||||
await page.goto(`/router?form=${routingForm.id}&Test field=custom-page`);
|
||||
@@ -352,19 +344,15 @@ async function fillSeededForm(page: Page, routingFormId: string) {
|
||||
await gotoRoutingLink(page, routingFormId);
|
||||
await page.fill('[data-testid="form-field"]', "event-routing");
|
||||
page.click('button[type="submit"]');
|
||||
await page.waitForNavigation({
|
||||
url(url) {
|
||||
return url.pathname.endsWith("/pro/30min");
|
||||
},
|
||||
await page.waitForURL((url) => {
|
||||
return url.pathname.endsWith("/pro/30min");
|
||||
});
|
||||
|
||||
await gotoRoutingLink(page, routingFormId);
|
||||
await page.fill('[data-testid="form-field"]', "external-redirect");
|
||||
page.click('button[type="submit"]');
|
||||
await page.waitForNavigation({
|
||||
url(url) {
|
||||
return url.hostname.includes("google.com");
|
||||
},
|
||||
await page.waitForURL((url) => {
|
||||
return url.hostname.includes("google.com");
|
||||
});
|
||||
|
||||
await gotoRoutingLink(page, routingFormId);
|
||||
|
||||
@@ -19,14 +19,10 @@ const installApps = async (page: Page, users: Fixtures["users"]) => {
|
||||
await user.login();
|
||||
await page.goto(`/apps/routing-forms`);
|
||||
await page.click('[data-testid="install-app-button"]');
|
||||
await page.waitForNavigation({
|
||||
url: (url) => url.pathname === `/apps/routing-forms/forms`,
|
||||
});
|
||||
await page.waitForURL((url) => url.pathname === `/apps/routing-forms/forms`);
|
||||
await page.goto(`/apps/typeform`);
|
||||
await page.click('[data-testid="install-app-button"]');
|
||||
await page.waitForNavigation({
|
||||
url: (url) => url.pathname === `/apps/typeform/how-to-use`,
|
||||
});
|
||||
await page.waitForURL((url) => url.pathname === `/apps/typeform/how-to-use`);
|
||||
};
|
||||
|
||||
test.describe("Typeform App", () => {
|
||||
|
||||
@@ -93,10 +93,8 @@ async function selectFirstAvailableTimeSlotNextMonth(frame: Frame, page: Page) {
|
||||
export async function bookFirstEvent(username: string, frame: Frame, page: Page) {
|
||||
// Click first event type
|
||||
await frame.click('[data-testid="event-type-link"]');
|
||||
await frame.waitForNavigation({
|
||||
url(url) {
|
||||
return !!url.pathname.match(new RegExp(`/${username}/.*$`));
|
||||
},
|
||||
await frame.waitForURL((url) => {
|
||||
return !!url.pathname.match(new RegExp(`/${username}/.*$`));
|
||||
});
|
||||
|
||||
// Let current month dates fully render.
|
||||
@@ -107,10 +105,8 @@ export async function bookFirstEvent(username: string, frame: Frame, page: Page)
|
||||
// expect(await page.screenshot()).toMatchSnapshot("availability-page-1.png");
|
||||
const eventSlug = new URL(frame.url()).pathname;
|
||||
await selectFirstAvailableTimeSlotNextMonth(frame, page);
|
||||
await frame.waitForNavigation({
|
||||
url(url) {
|
||||
return url.pathname.includes(`/${username}/book`);
|
||||
},
|
||||
await frame.waitForURL((url) => {
|
||||
return url.pathname.includes(`/${username}/book`);
|
||||
});
|
||||
// expect(await page.screenshot()).toMatchSnapshot("booking-page.png");
|
||||
// --- fill form
|
||||
@@ -136,10 +132,8 @@ export async function bookFirstEvent(username: string, frame: Frame, page: Page)
|
||||
|
||||
export async function rescheduleEvent(username, frame, page) {
|
||||
await selectFirstAvailableTimeSlotNextMonth(frame, page);
|
||||
await frame.waitForNavigation({
|
||||
url(url) {
|
||||
return url.pathname.includes(`/${username}/book`);
|
||||
},
|
||||
await frame.waitForURL((url) => {
|
||||
return url.pathname.includes(`/${username}/book`);
|
||||
});
|
||||
// --- fill form
|
||||
await frame.press('[name="email"]', "Enter");
|
||||
|
||||
Reference in new issue
Block a user