Skip to content

Commit

Permalink
#5460 add live gmail test
Browse files Browse the repository at this point in the history
  • Loading branch information
martgil committed Oct 30, 2023
1 parent d997ce6 commit 125e9c3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/source/tests/gmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,26 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
})
);

test(
'mail.google.com - the number of attachments label should be hidden for encrypted emails',
testWithBrowser(async (t, browser) => {
const threadId = '15f7f0e992f2c830';
await BrowserRecipe.setUpCommonAcct(t, browser, 'compatibility');
const gmailPage = await openGmailPage(t, browser);
await gotoGmailPage(gmailPage, `/${threadId}`);
const pgpBlockUrls = await gmailPage.getFramesUrls(['/chrome/elements/pgp_block.htm'], {
sleep: 10,
appearIn: 25,
});
const pgpBlockFrame = await gmailPage.getFrame([pgpBlockUrls[0]]);
await BrowserRecipe.pgpBlockCheck(t, pgpBlockFrame, {
content: ['test password message'],
encryption: 'encrypted',
});
expect(await gmailPage.isElementPresent('.aVW')).to.equal(false);
})
);

// todo - missing equivalent sample at ci.tests.gmail
// test('mail.google.com - pubkey gets rendered when using quoted-printable mime', testWithBrowser('compatibility', async (t, browser) => {
// const gmailPage = await openGmailPage(t, browser, '/WhctKJVRFztXGwvSbwcrbDshGTnLWMFvhwJmhqllRWwvpKnlpblQMXVZLTsKfWdPWKhPFBV');
Expand Down

0 comments on commit 125e9c3

Please sign in to comment.