Skip to content

Commit fcd336a

Browse files
committed
refactor: rename variables
1 parent 6c2b75b commit fcd336a

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

test/source/tests/decrypt.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,26 +2079,26 @@ XZ8r4OC6sguP/yozWlkG+7dDxsgKQVBENeG6Lw==
20792079
test(
20802080
'decrypt - an ambiguous file "noname" should not be recognized as an encrypted message and should be hidden in encrypted message',
20812081
testWithBrowser(async (t, browser) => {
2082-
const threadId2 = '18afaa4118afeb62'; // email attachment "noname" with type application/octet-stream
2083-
const threadId3 = '191e2735a1cc08c4'; // email attachment "noname" with type message/global
2084-
const threadId4 = '18b7f6a2b00ad967'; // a password-protected message that is also public key encrypted with noname attachment
2082+
const threadId1 = '18afaa4118afeb62'; // email attachment "noname" with type application/octet-stream
2083+
const threadId2 = '191e2735a1cc08c4'; // email attachment "noname" with type message/global
2084+
const threadId3 = '18b7f6a2b00ad967'; // a password-protected message that is also public key encrypted with noname attachment
20852085
const { acctEmail } = await BrowserRecipe.setupCommonAcctWithAttester(t, browser, 'compatibility');
2086+
const inboxPage1 = await browser.newExtensionPage(t, `chrome/settings/inbox/inbox.htm?acctEmail=${acctEmail}&threadId=${threadId1}`);
2087+
await inboxPage1.notPresent('iframe.pgp_block');
2088+
expect(await inboxPage1.isElementPresent('@container-attachments')).to.be.true;
2089+
await inboxPage1.close();
20862090
const inboxPage2 = await browser.newExtensionPage(t, `chrome/settings/inbox/inbox.htm?acctEmail=${acctEmail}&threadId=${threadId2}`);
20872091
await inboxPage2.notPresent('iframe.pgp_block');
2088-
expect(await inboxPage2.isElementPresent('@container-attachments')).to.be.true;
2089-
await inboxPage2.close();
2090-
const inboxPage3 = await browser.newExtensionPage(t, `chrome/settings/inbox/inbox.htm?acctEmail=${acctEmail}&threadId=${threadId3}`);
2091-
await inboxPage3.notPresent('iframe.pgp_block');
2092-
const attachmentsContainer = await inboxPage3.waitAny('@container-attachments');
2092+
const attachmentsContainer = await inboxPage2.waitAny('@container-attachments');
20932093
const attachments = await attachmentsContainer.$$('.pgp_attachment');
20942094
expect(attachments.length).to.equal(1);
2095-
await inboxPage3.close();
2096-
const inboxPage4 = await browser.newExtensionPage(t, `chrome/settings/inbox/inbox.htm?acctEmail=${acctEmail}&threadId=${threadId4}`);
2097-
const pgpBlock = await inboxPage4.getFrame(['pgp_block.htm']);
2098-
await inboxPage4.notPresent('@container-attachments');
2099-
expect(await inboxPage4.isElementPresent('iframe.pgp_block')).to.equal(true);
2095+
await inboxPage2.close();
2096+
const inboxPage3 = await browser.newExtensionPage(t, `chrome/settings/inbox/inbox.htm?acctEmail=${acctEmail}&threadId=${threadId3}`);
2097+
const pgpBlock = await inboxPage3.getFrame(['pgp_block.htm']);
2098+
await inboxPage3.notPresent('@container-attachments');
2099+
expect(await inboxPage3.isElementPresent('iframe.pgp_block')).to.equal(true);
21002100
expect(await pgpBlock.isElementPresent('@pgp-encryption')).to.equal(true);
2101-
await inboxPage4.close();
2101+
await inboxPage3.close();
21022102
})
21032103
);
21042104

0 commit comments

Comments
 (0)