test: add e2e tests for gift-token endpoints#686
Open
pradhyumna186 wants to merge 1 commit intoGreenstand:mainfrom
Open
test: add e2e tests for gift-token endpoints#686pradhyumna186 wants to merge 1 commit intoGreenstand:mainfrom
pradhyumna186 wants to merge 1 commit intoGreenstand:mainfrom
Conversation
Add integration tests for POST and GET /gift-token endpoints as defined in user-api.yaml (lines 29-66). - Mock generateGiftToken from packages/keycloak - Mock sendEmail from packages/common - Test success and error scenarios for sending gift tokens - Test retrieval of sent gift tokens
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add integration tests for the gift-token endpoints (
POST /gift-tokenandGET /gift-token) as defined in the user-api.yaml specification (lines 29-66). These tests follow TDD approach and will pass once the endpoints are implemented.The tests mock external dependencies:
generateGiftTokenfrompackages/keycloak/generateGiftToken.tssendEmailfrompackages/common/sendEmail.tsResolves: # (related issue number if applicable)
Changes Made
Changes in
appsfolder (specify the app and briefly describe thechanges):
User- Addedtests/gift-token.spec.e2e.tswith integration tests for gift-token endpointsWebNativeChanges in
packagesfolder (specify the package and briefly describethe changes):
CoreType of Change
functionality to not work as expected)
Screenshots
N/A - Test file only, no UI changes
How Has This Been Tested?
Tests can be run with: