Skip to content

Commit f6d8817

Browse files
fix: tests
1 parent 95c8251 commit f6d8817

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/source/tests/decrypt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ XZ8r4OC6sguP/yozWlkG+7dDxsgKQVBENeG6Lw==
14611461
await BrowserRecipe.pgpBlockCheck(t, await inboxPage.getFrame([urls[0]]), expectedMessage);
14621462
await inboxPage.close();
14631463
const gmailPage = await browser.newPage(t, `${t.context.urls?.mockGmailUrl()}/${threadId}`, undefined, authHdr);
1464-
await gmailPage.waitAll('iframe', { timeout: 2 });
1464+
await gmailPage.waitAll('iframe', { timeout: 15 });
14651465
const frameUrlsFromGmailPage = await gmailPage.getFramesUrls(['/chrome/elements/pgp_block.htm'], { sleep: 10, appearIn: 20 });
14661466
expect(frameUrlsFromGmailPage.length).to.equal(1);
14671467
await BrowserRecipe.pgpBlockCheck(t, await gmailPage.getFrame([frameUrlsFromGmailPage[0]]), expectedMessage);

test/source/tests/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ export const defineSettingsTests = (testVariant: TestVariant, testWithBrowser: T
843843
await myKeyPage.waitAll('@input-compatibility-fix-expire-years', { timeout: 30 });
844844
await myKeyPage.selectOption('@input-compatibility-fix-expire-years', '1');
845845
await myKeyPage.waitAndClick('@action-fix-and-import-key');
846+
await Util.sleep(4); // wait for navigation to complete
846847
const { cryptup_flowcryptcompatibilitygmailcom_keys: keys } = await settingsPage.getFromLocalStorage(['cryptup_flowcryptcompatibilitygmailcom_keys']);
847848
const pubkey = await KeyUtil.parse((keys as KeyInfoWithIdentity[])[0].public);
848849
const expectedExpiration = new Date().getFullYear() + 1;

0 commit comments

Comments
 (0)