-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Add more orgs tests #12241
test: Add more orgs tests #12241
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Ignored Deployments
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes! |
@@ -143,7 +143,7 @@ export default function Signup({ prepopulateFormValues, token, orgSlug, orgAutoA | |||
methods.clearErrors("apiError"); | |||
} | |||
|
|||
if (methods.getValues().username === undefined && isOrgInviteByLink && orgAutoAcceptEmail) { | |||
if (!methods.getValues().username && isOrgInviteByLink && orgAutoAcceptEmail) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty username isn't valid so, let's compute username from email in that case as well.
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
86f9500
to
0033b86
Compare
0033b86
to
dfdc257
Compare
@@ -37,7 +37,7 @@ type SignupProps = inferSSRProps<typeof getServerSideProps>; | |||
const checkValidEmail = (email: string) => z.string().email().safeParse(email).success; | |||
|
|||
const getOrgUsernameFromEmail = (email: string, autoAcceptEmailDomain: string) => { | |||
const [emailUser, emailDomain] = email.split("@"); | |||
const [emailUser, emailDomain = ""] = email.split("@"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue arises when form is submitted without entering the email or email doesn't have @ in it when it was submitted.
dfdc257
to
c37d1cb
Compare
c37d1cb
to
e8f3da3
Compare
e8f3da3
to
6842798
Compare
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 318 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 11/15/2023 08:07:03am UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 7943f83 Started: 11/15/2023 07:59:06am UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
2FA Tests should allow a user to enable 2FA and login using 2FA
Retry 1 • Initial Attempt |
0.39% (1)1 / 258 runfailed over last 7 days |
32.56% (84)84 / 258 runsflaked over last 7 days |
📄 apps/web/playwright/booking/phoneQuestion.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Booking With Phone Question and multiselect Question Phone required and multiselect text not required
Retry 1 • Initial Attempt |
1.21% (3)3 / 248 runsfailed over last 7 days |
0.81% (2)2 / 248 runsflaked over last 7 days |
📄 apps/web/playwright/booking/addressQuestione2e/addressQuestion.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Booking With Address Question and Each Other Question Booking With Address Question and multiselect Question Address required and multiselect text required
Retry 1 • Initial Attempt |
0% (0)0 / 259 runsfailed over last 7 days |
1.54% (4)4 / 259 runsflaked over last 7 days |
📄 apps/web/playwright/event-types.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Event Types tests user Different Locations Tests Can add Link Meeting as location and book with it
Retry 1 • Initial Attempt |
0.75% (2)2 / 266 runsfailed over last 7 days |
6.77% (18)18 / 266 runsflaked over last 7 days |
📄 apps/web/playwright/organization/organization-creation.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Organization should be able to create an organization and complete onboarding
Retry 2 • Retry 1 • Initial Attempt |
0% (0)0 / 3 runsfailed over last 7 days |
100% (3)3 / 3 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes
Top 1 Common Error Messages
|
2 Test Cases Affected |
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Popup Tests should be able to reschedule
Retry 2 • Retry 1 • Initial Attempt |
16.97% (47)47 / 277 runsfailed over last 7 days |
79.06% (219)219 / 277 runsflaked over last 7 days |
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1 • Initial Attempt |
1.08% (3)3 / 278 runsfailed over last 7 days |
55.76% (155)155 / 278 runsflaked over last 7 days |
📄 apps/web/playwright/webhook.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
FORM_SUBMITTED on submitting team form, triggers team webhook
Retry 1 • Initial Attempt |
1.12% (3)3 / 269 runsfailed over last 7 days |
13.38% (36)36 / 269 runsflaked over last 7 days |
7c03444
to
5acbb58
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self reviewed
packages/trpc/server/routers/viewer/organizations/create.handler.ts
Outdated
Show resolved
Hide resolved
@@ -175,7 +170,6 @@ export const createHandler = async ({ input, ctx }: CreateOptions) => { | |||
|
|||
return { user: { ...createOwnerOrg, password } }; | |||
} else { | |||
if (!IS_PRODUCTION) return { checked: true }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's needed. Code verification still accepts any code for dev mode, so there is no need to skip sending email
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
e74e60b
to
7943f83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work on these tests, @hariombalhara
* feat: integrate formbricks in help feedback box * Update yarn.lock * Update yarn.lock * fix: use formbricks/[email protected] & set user with userId linked to feedback * fix: use separate env vars as suggested * test: Add more orgs tests (#12241) * feat: integrate formbricks in help feedback box * Update yarn.lock * fix: yarn lockfile * fix: yarn lockfile again * feat: link cal and formbricks user.id and add attributes of email and username to formbricks person object * Update yarn.lock * Update yarn.lock * fix: type safety in enums --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Hariom Balhara <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
What does this PR do?
Adds tests to verify
Based on @leog's work in #11804 as I didn't have write access to the PR. I did some small fixes and code cleanup.
How should this be tested?
yarn e2e organization
Mandatory Tasks