Skip to content

Commit

Permalink
test: check for signature scope in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zangetsu101 committed Nov 6, 2024
1 parent 91645a4 commit 9841784
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/tests/forms.json
Original file line number Diff line number Diff line change
Expand Up @@ -12393,7 +12393,7 @@
"conditionals": [
{
"action": "hide",
"expression": "values.role!==\"LOCAL_REGISTRAR\" && values.role!==\"NATIONAL_REGISTRAR\""
"expression": "!values.scopes?.includes('profile.electronic-signature')"
}
],
"fields": [
Expand Down
1 change: 1 addition & 0 deletions packages/client/src/tests/util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1641,6 +1641,7 @@ export const mockDataWithRegistarRoleSelected = {
phoneNumber: '01662132132',
registrationOffice: '895cc945-94a9-4195-9a29-22e9310f3385',
role: 'LOCAL_REGISTRAR',
scopes: [SCOPES.PROFILE_ELECTRONIC_SIGNATURE],
userDetails: '',
username: '',
signature: {
Expand Down

0 comments on commit 9841784

Please sign in to comment.