diff --git a/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts b/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts index 4a4d77747fe..f72d13afc98 100644 --- a/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts @@ -123,6 +123,16 @@ describe('amplify add api (REST)', () => { restrictAccess: true, allowGuestUsers: false, }); + + // add more paths to and test policy slicing + for (let i = 0; i < 15; i++) { + await addRestApi(projRoot, { + isFirstRestApi: false, + existingLambda: true, + restrictAccess: true, + allowGuestUsers: true, + }); + } await addRestApi(projRoot, { isFirstRestApi: false, existingLambda: true }); await updateAuthAddAdminQueries(projRoot, undefined, {}); await amplifyPushUpdate(projRoot);