From a58ed06dddd9a8e0c8d5cc8ec2b93fa543f0413f Mon Sep 17 00:00:00 2001 From: Ioan Moldovan Date: Tue, 14 May 2024 09:07:14 -0400 Subject: [PATCH] revert changes --- test/source/tests/decrypt.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/source/tests/decrypt.ts b/test/source/tests/decrypt.ts index 94e45d22ae1..b8d2b6d6f6f 100644 --- a/test/source/tests/decrypt.ts +++ b/test/source/tests/decrypt.ts @@ -1632,11 +1632,7 @@ XZ8r4OC6sguP/yozWlkG+7dDxsgKQVBENeG6Lw== expect((await gmailPage2.getFramesUrls(['pgp_block.htm'])).length).to.equal(1); expect((await gmailPage2.getFramesUrls(['pgp_pubkey.htm'], { sleep: 0, appearIn: 0 })).length).to.equal(0); const attachmentFrame = await gmailPage2.getFrame(['attachment.htm']); - await attachmentFrame.waitAndClick('@attachment-container'); - const attachmentPreviewPage = await gmailPage2.getFrame(['attachment_preview.htm']); - const downloadedFiles = await gmailPage2.awaitDownloadTriggeredByClicking(async () => { - await attachmentPreviewPage.waitAndClick('@attachment-preview-download'); - }); + const downloadedFiles = await attachmentFrame.awaitDownloadTriggeredByClicking('@download-attachment'); const entries = Object.entries(downloadedFiles); expect(entries.length).to.equal(1); const decryptedContent = entries[0][1].toString();