
* updated saml-jackson * if logged in redirect to getting-started page with username in the query param * fixed issue with mixed up Google login, profile.id is undefined and this is causing the first record to be retrieved instead of the AND query failing * updated updated saml-jackson * document PGSSLMODE for Heroku * tweaks to PGSSLMODE doc * for self-hosted instance just allow user to signin with any identity (as long as email matches) * fixed submitting flag * added username to onboarding flow (if requested during signup) * added telemetry for google login, saml login, saml config * check if firstName and lastName are defined * convert mutation to an async op * added e2e test to ensure username query param gets picked up during onboarding * fixed minor typo and added note about configuring Google integration as an Internal app when self-hosting * cleaned up unnecessary ssr in sso signup routes * renamed function * Revert "cleaned up unnecessary ssr in sso signup routes" This reverts commit 3607ffef79542d8ca4277a64be38d35bd9457960. * moved client side code to useEffect hook * - format - fixed Save button in SAML config component Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
27 lines
841 B
TypeScript
27 lines
841 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test.describe("Onboarding", () => {
|
|
test.use({ storageState: "playwright/artifacts/onboardingStorageState.json" });
|
|
|
|
test("redirects to /getting-started after login", async ({ page }) => {
|
|
await page.goto("/event-types");
|
|
await page.waitForNavigation({
|
|
url(url) {
|
|
return url.pathname === "/getting-started";
|
|
},
|
|
});
|
|
});
|
|
|
|
const username = "calendso";
|
|
test(`/getting-started?username=${username} shows the first step of onboarding with username field populated`, async ({
|
|
page,
|
|
}) => {
|
|
await page.goto("/getting-started?username=" + username);
|
|
|
|
await page.waitForSelector("[data-testid=username]");
|
|
|
|
await expect(await page.$eval("[data-testid=username]", (el: HTMLInputElement) => el.value)).toEqual(
|
|
username
|
|
);
|
|
});
|
|
});
|