You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should report proper download.url() when download is from download attribute',async({browser, server})=>{constpage=awaitbrowser.newPage({acceptDownloads: true});awaitpage.goto(server.PREFIX+'/empty.html');awaitpage.setContent(`<a href="${server.PREFIX}/chromium-linux.zip" download="foo.zip">download</a>`);const[download]=awaitPromise.all([page.waitForEvent('download'),page.click('a')]);expect(download.url()).toBe(`${server.PREFIX}/chromium-linux.zip`);awaitpage.close();});
This test fails on Webkit since download.url() is considered to be page url.
The text was updated successfully, but these errors were encountered:
consider the following test:
This test fails on Webkit since
download.url()
is considered to be page url.The text was updated successfully, but these errors were encountered: