feat: remove setup-availability step in onboarding flow (#17799)
* feat: make the onboarding flow 3-step for google signups * fix * refactor * rename * improve tests * remove test tag * fix test and type error * fix * feat: remove setup-availability step in onboarding flow * update test * revert unneeded change * add safety * update create schedule options
This commit is contained in:
1 parent
370345da22
commit
a466e8eef7
3 files changed
+31
-119
No files matched your search
@@ -41,7 +41,7 @@ test.describe("Onboarding", () => {
|
||||
await page.locator("button[type=submit]").click();
|
||||
|
||||
if (identityProvider === IdentityProvider.GOOGLE) {
|
||||
await expect(page).toHaveURL(/.*setup-availability/);
|
||||
await expect(page).toHaveURL(/.*user-profile/);
|
||||
} else {
|
||||
await expect(page).toHaveURL(/.*connected-calendar/);
|
||||
}
|
||||
@@ -66,20 +66,11 @@ test.describe("Onboarding", () => {
|
||||
// tests skip button, we don't want to test entire flow.
|
||||
await page.locator("button[data-testid=skip-step]").click();
|
||||
|
||||
await expect(page).toHaveURL(/.*setup-availability/);
|
||||
await expect(page).toHaveURL(/.*user-profile/);
|
||||
});
|
||||
}
|
||||
|
||||
await test.step("step 4 - Setup Availability", async () => {
|
||||
const isDisabled = await page.locator("button[data-testid=save-availability]").isDisabled();
|
||||
await expect(isDisabled).toBe(false);
|
||||
// same here, skip this step.
|
||||
await page.locator("button[data-testid=save-availability]").click();
|
||||
|
||||
await expect(page).toHaveURL(/.*user-profile/);
|
||||
});
|
||||
|
||||
await test.step("step 5- User Profile", async () => {
|
||||
await test.step("step 4 - User Profile", async () => {
|
||||
await page.locator("button[type=submit]").click();
|
||||
|
||||
// should redirect to /event-types after onboarding
|
||||
|
||||
Reference in new issue
Block a user