E2E: CI Improvements (#2918)

This commit is contained in:
yasserfaraazkhan
2023-12-13 14:24:16 +05:30
committed by GitHub
parent 45b08df7d3
commit 675ec6d661
6 changed files with 57 additions and 44 deletions

View File

@@ -74,11 +74,7 @@ describe('downloads/downloads_manager', function desc() {
});
it('MM-22239 should open downloads dropdown when a download starts', async () => {
await firstServer.locator('#file-attachment-link', {hasText: filename}).click();
await asyncSleep(1000);
await Promise.all([
firstServer.locator(`div[role="dialog"] a[download="${filename}"]`).click(), // Triggers the download.
]);
await firstServer.locator(`a[download="${filename}"]`).click();
await asyncSleep(1000);
(await env.downloadsDropdownIsOpen(this.app)).should.equal(true);
});