-
Notifications
You must be signed in to change notification settings - Fork 15
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
PP-11594 Add ‘sandbox’ to ‘isDigitalWalletSupported’ test. #4143
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
41c8b08
PP-11594 Add ‘sandbox’ to ‘isDigitalWalletSupported’ test.
JFSGDS 2a65bfd
BAU: Fix Dependabot Docker ignore
katstevens 0dd38e5
Merge pull request #4144 from alphagov/BAU-fix-dependabot-docker-ignore
katstevens 555e58d
Bump node from 18.17.1-alpine3.18 to 18.18.2-alpine3.18
dependabot[bot] a8bfea6
Merge pull request #4145 from alphagov/dependabot/docker/node-18.18.2…
katstevens fcf8c67
PP-9916 Change test card number in Stripe test accounts
JFSGDS bd9a04f
Bump @babel/traverse from 7.22.10 to 7.23.2
dependabot[bot] fc19af8
Merge pull request #4147 from alphagov/dependabot/npm_and_yarn/babel/…
katstevens 5a6a9ed
PP-9916 Change test card number in Stripe test accounts
JFSGDS fc2ef7f
PP-9916 Change test card number in Stripe test accounts
JFSGDS 4048451
PP-9916 Change test card number in Stripe test accounts
JFSGDS 2807062
Merge pull request #4146 from alphagov/PP-9916-change-test-card-numbe…
JFSGDS 7f524f8
PP-7843 Stop selecting default option on permission level radios (#4148)
hjvoid 7281d7f
PP-11594 Add ‘sandbox’ to ‘isDigitalWalletSupported’ test.
JFSGDS d6f0428
Merge branch 'PP-11594-enable-apple-gpay-for-sandbox-accts' of github…
JFSGDS d4d525f
PP-11594 Remove Pact tests no longer required
JFSGDS dacbb22
PP-11594 Fix linting errors picked up during build.
JFSGDS 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 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,27 @@ describe('invite user controller', () => { | |
sinon.assert.calledWith(req.flash, 'genericError', 'Enter a valid email address') | ||
sinon.assert.calledWith(res.redirect, 303, `/service/${externalServiceId}/team-members/invite`) | ||
}) | ||
|
||
it('should error if a role is not recognised', async () => { | ||
const externalServiceId = 'some-external-service-id' | ||
const unknownRoleId = '999' | ||
const req = { | ||
user: { externalId: 'some-ext-id', serviceIds: ['1'] }, | ||
body: { | ||
'invitee-email': '[email protected]', | ||
'role-input': unknownRoleId | ||
}, | ||
service: { | ||
externalId: externalServiceId | ||
}, | ||
flash: sinon.stub() | ||
} | ||
const res = { | ||
redirect: sinon.stub() | ||
} | ||
|
||
await inviteUserController.invite(req, res) | ||
sinon.assert.calledWith(req.flash, 'genericError', 'Select the team member’s permission level') | ||
sinon.assert.calledWith(res.redirect, 303, `/service/${externalServiceId}/team-members/invite`) | ||
}) | ||
}) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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.
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.
wallet payments for stripe are now live so we can probably remove the env var that toggles this feature
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.
might need to update some tests if taking this suggestion