Skip to content

test: Add E2E tests for orgRedirection=true param#16066

Merged
hariombalhara merged 5 commits intocalcom:mainfrom
ImBIOS:test/add-e2e-tests-for-org-redirectioon-true-param
Aug 13, 2024
Merged

test: Add E2E tests for orgRedirection=true param#16066
hariombalhara merged 5 commits intocalcom:mainfrom
ImBIOS:test/add-e2e-tests-for-org-redirectioon-true-param

Conversation

@ImBIOS
Copy link
Copy Markdown
Contributor

@ImBIOS ImBIOS commented Aug 5, 2024

What does this PR do?

/claim #14516

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set? none
  • What are the minimal test data to have? ???
  • What is expected (happy path) to have (input and output)? ???
  • Any other important info that could help to test that PR:

run these 2 commands in different terminal:

NEXT_PUBLIC_IS_E2E=true yarn dx
yarn e2e organization-redirection.e2e.ts

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 5, 2024

@ImBIOS is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app Bot added the community Created by Linear-GitHub Sync label Aug 5, 2024
@graphite-app graphite-app Bot requested a review from a team August 5, 2024 06:14
@github-actions github-actions Bot added automated-tests area: unit tests, e2e tests, playwright booking-page area: booking page, public booking page, booker event-types area: event types, event-types Low priority Created by Linear-GitHub Sync organizations area: organizations, orgs teams area: teams, round robin, collective, managed event-types 💎 Bounty A bounty on Algora.io labels Aug 5, 2024
@dosubot dosubot Bot added this to the v4.4 milestone Aug 5, 2024
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Aug 5, 2024

Graphite Automations

"Add community label" took an action on this PR • (08/05/24)

1 label was added to this PR based on Keith Williams's automation.

"Add consumer team as reviewer" took an action on this PR • (08/05/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@ImBIOS
Copy link
Copy Markdown
Contributor Author

ImBIOS commented Aug 7, 2024

@hariombalhara @anikdhabal any update on review?

const slugIndex = index ? `-count-${index}` : "";
const slug = `${isOrg ? "org" : "team"}-${workerInfo.workerIndex}-${Date.now()}${slugIndex}`;
const slug =
orgRequestedSlug ?? `${isOrg ? "org" : "team"}-${workerInfo.workerIndex}-${Date.now()}${slugIndex}`;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't orgRequestedSlug be made unique as well using similar pattern

@hariombalhara hariombalhara enabled auto-merge (squash) August 13, 2024 10:52
@hariombalhara
Copy link
Copy Markdown
Member

Thanks @ImBIOS !! Great work

@hariombalhara hariombalhara merged commit 3eaf84e into calcom:main Aug 13, 2024
@ImBIOS ImBIOS deleted the test/add-e2e-tests-for-org-redirectioon-true-param branch August 13, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-tests area: unit tests, e2e tests, playwright booking-page area: booking page, public booking page, booker 🙋 Bounty claim 💎 Bounty A bounty on Algora.io community Created by Linear-GitHub Sync event-types area: event types, event-types Low priority Created by Linear-GitHub Sync organizations area: organizations, orgs ready-for-e2e teams area: teams, round robin, collective, managed event-types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-3395] E2E tests for orgRedirection=true param

2 participants