Skip to content

Commit e1ce6bc

Browse files
authored
Merge pull request #13923 from aws-amplify/update-s3-access-e2e
fix: update message when expecting S3 to throw
2 parents 62d154b + de45143 commit e1ce6bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/amplify-e2e-tests/src/__tests__/auth/user-groups-s3-access.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('user group tests', () => {
100100
Key: s3key,
101101
}),
102102
),
103-
).rejects.toThrow('Access Denied');
103+
).rejects.toThrow(/not authorized to perform/);
104104
await expect(
105105
s3Client2.send(
106106
new PutObjectCommand({
@@ -109,7 +109,7 @@ describe('user group tests', () => {
109109
Body: s3val,
110110
}),
111111
),
112-
).rejects.toThrow('Access Denied');
112+
).rejects.toThrow(/not authorized to perform/);
113113
await signOutUser();
114114
});
115115
});

0 commit comments

Comments
 (0)