test: unflake "should close the context without awaiting the failed download" (#9094)
This commit is contained in:
parent
de4aa50d55
commit
1bebbc31b2
|
|
@ -406,7 +406,10 @@ it.describe('download event', () => {
|
|||
page.context().close(),
|
||||
]);
|
||||
expect(downloadPath).toBe(null);
|
||||
expect(saveError.message).toContain('File not found on disk. Check download.failure() for details.');
|
||||
expect([
|
||||
'download.saveAs: File not found on disk. Check download.failure() for details.',
|
||||
'download.saveAs: canceled',
|
||||
]).toContain(saveError.message);
|
||||
});
|
||||
|
||||
it('should close the context without awaiting the download', async ({browser, server, browserName, platform}, testInfo) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue