Skip to content

Commit

Permalink
test: update function e2e tests to handle text changes (#6487)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett authored Jan 27, 2021
1 parent 01885ee commit 525deb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const additionalPermissions = (cwd: string, chain: ExecutionContext, settings: a
// when single resource, it gets autoselected
if (settings.additionalPermissions.resources.length > 1) {
multiSelect(
chain.wait('Select the one you would like your'),
chain.wait(/Select the (operations you want to permit on *|one you would like your *)/),
settings.additionalPermissions.resources,
settings.additionalPermissions.resourceChoices,
);
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-e2e-tests/src/__tests__/function_2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ describe('nodejs', () => {
permissions: ['api'],
choices: ['api'],
resources: [apiName],
operations: ['read'],
operations: ['Query'],
},
},
'nodejs',
Expand Down Expand Up @@ -378,7 +378,7 @@ describe('nodejs', () => {
permissions: ['api'],
choices: ['api'],
resources: [apiName],
operations: ['query'],
operations: ['Query'],
},
},
'nodejs',
Expand Down

0 comments on commit 525deb6

Please sign in to comment.