Skip to content

test: increase timeout in e2e tests #745

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions KeychainExample/e2e/testCases/accessControlTest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Access Control', () => {
await element(by.text('Keychain Example')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(4000);
.withTimeout(5000);

await waitForAuthValidity();
await element(by.text('Load')).tap();
Expand Down Expand Up @@ -71,7 +71,7 @@ describe('Access Control', () => {

await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);

await waitForAuthValidity();
await element(by.text('Load')).tap();
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('Access Control', () => {
await element(by.text('Save')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await element(by.text('Load')).tap();
await matchLoadInfo('testUsernameAny', 'testPasswordAny');
}
Expand Down
6 changes: 3 additions & 3 deletions KeychainExample/e2e/testCases/securityLevelTest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe(':android:Security Level', () => {
await element(by.text('Save')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await element(by.text('Load')).tap();
await matchLoadInfo(
'testUsernameAny',
Expand All @@ -48,7 +48,7 @@ describe(':android:Security Level', () => {
await element(by.text('Save')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await element(by.text('Load')).tap();
await matchLoadInfo(
'testUsernameSoftware',
Expand Down Expand Up @@ -76,7 +76,7 @@ describe(':android:Security Level', () => {
await element(by.text('Save')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await element(by.text('Load')).tap();
await matchLoadInfo(
'testUsernameHardware',
Expand Down
6 changes: 3 additions & 3 deletions KeychainExample/e2e/testCases/storageTypesTest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe(':android:Storage Types', () => {
await element(by.text('Save')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await element(by.text('Load')).tap();
await matchLoadInfo(
'testUsernameAESCBC',
Expand All @@ -48,7 +48,7 @@ describe(':android:Storage Types', () => {
await enterBiometrics();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await waitForAuthValidity();
await element(by.text('Load')).tap();
await enterBiometrics();
Expand Down Expand Up @@ -81,7 +81,7 @@ describe(':android:Storage Types', () => {
await element(by.text('Save')).tap();
await waitFor(element(by.text(/^Credentials saved! .*$/)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
await element(by.text('Load')).tap();
await matchLoadInfo(
'testUsernameAESGCMNoAuth',
Expand Down
2 changes: 1 addition & 1 deletion KeychainExample/e2e/utils/matchLoadInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export const matchLoadInfo = async (
const regex = new RegExp(regexPattern);
await waitFor(element(by.text(regex)))
.toExist()
.withTimeout(3000);
.withTimeout(5000);
};
Loading