-
Notifications
You must be signed in to change notification settings - Fork 12k
test: add comprehensive unit tests for no-show fee payment functions #23626
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
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
c05cb75
feat: add time-based cancellation fees for no-show fee events
devin-ai-integration[bot] 4bd2585
fix: replace any type with proper type guards for metadata
devin-ai-integration[bot] cf23e6b
fix: handle JsonValue type compatibility in shouldChargeCancellationFee
devin-ai-integration[bot] 7c3d9c6
Refactor Devin changes to Stripe options
joeauyeung 0be2fda
Undo Devin changes to advanced tab
joeauyeung 3c18561
Add translations
joeauyeung defe6c2
Pass props to CancelBooking
joeauyeung 5d9fcef
Display no show fee charge for attendee
joeauyeung c5b8471
WIP
joeauyeung 004df7f
Anstract shouldChargeNoSHowCancellationFee
joeauyeung 6b85588
Abstract `handleNoShowFee`
joeauyeung 7b23906
Add to
joeauyeung 70392ae
Refactor `chargeCard.handler`
joeauyeung f1b1d23
Remove Devin code
joeauyeung a91bb71
Type fix in `shouldChargeNoShowCancellationFee`
joeauyeung 0194d6d
Create `processNoSHowFeeOnCancellation`
joeauyeung 4d11139
Process no show fee on cancellation
joeauyeung b20e678
Type fix
joeauyeung 2522dc0
Skip processing no show fee if organizer or admin is cancelling
joeauyeung 7fd6ead
Add translation
joeauyeung 1706303
Dynamically get and in
joeauyeung c915116
Remove unused translations
joeauyeung dde41b9
Undo dev change
joeauyeung d3b0c85
Merge branch 'main' into devin/1757001996-no-show-cancellation-fees
joeauyeung 4dbe76f
Refactor logic
joeauyeung 8670a9a
Type fix
joeauyeung eba5f77
Merge branch 'main' into devin/1757001996-no-show-cancellation-fees
alishaz-polymath a2851eb
remove any
alishaz-polymath fc28e29
revert WEBAPP_URL_FOR_OAUTH
alishaz-polymath 78e8507
Clean up console.log remnants
alishaz-polymath 5cda957
test: add comprehensive tests for time-based cancellation fees
devin-ai-integration[bot] 6e6b2a8
test: add comprehensive tests for time-based cancellation fees
devin-ai-integration[bot] 3a40b01
test: add comprehensive tests for time-based cancellation fees
devin-ai-integration[bot] 7cd8b47
test: add comprehensive unit and E2E tests for time-based cancellatio…
devin-ai-integration[bot] 2cb59da
Revert dev change
joeauyeung fb46587
Add missing translation
joeauyeung 236b461
Remove Devin code
joeauyeung 2fa873d
Revert Devin changes
joeauyeung cad3731
test: fix attendee cancellation test logic and ensure comprehensive t…
devin-ai-integration[bot] 8c760ac
Fix tests
joeauyeung 8823fbd
test: add comprehensive unit tests for no-show fee payment functions
devin-ai-integration[bot] 72b123a
Don't block cancel flow for failed payment processing
joeauyeung f0efdb2
Await single attendee getTranslation in `handleNoShowFee`
joeauyeung 6cb4fbf
Merge branch main
joeauyeung 7170296
Add missing data
joeauyeung 967ad12
Undo old strings
joeauyeung 4dff3e2
Type fix
joeauyeung 4fe7629
Merge branch 'main' into devin/unit-tests-no-show-fees-1757085131
emrysal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wrapping these payment functions in a try/catch since the booking is already cancelled. If these fail we shouldn't throw an error to the user