Update page-set-input-files.spec.ts
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
abdb3cff98
commit
0fdb27f0d0
|
|
@ -37,9 +37,8 @@ it('should upload the file', async ({ page, server, asset }) => {
|
||||||
}, input)).toBe('contents of the file');
|
}, input)).toBe('contents of the file');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should upload a file after popup', async ({ page, server, asset, browserName }) => {
|
it('should upload a file after popup', async ({ page, server, asset }) => {
|
||||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29923' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/29923' });
|
||||||
it.fixme(browserName === 'firefox');
|
|
||||||
await page.goto(server.PREFIX + '/input/fileupload.html');
|
await page.goto(server.PREFIX + '/input/fileupload.html');
|
||||||
{
|
{
|
||||||
const [popup] = await Promise.all([
|
const [popup] = await Promise.all([
|
||||||
|
|
@ -691,4 +690,4 @@ it('should preserve lastModified timestamp', async ({ page, asset }) => {
|
||||||
// rounds it to seconds in WebKit: 1696272058110 -> 1696272058000.
|
// rounds it to seconds in WebKit: 1696272058110 -> 1696272058000.
|
||||||
for (let i = 0; i < timestamps.length; i++)
|
for (let i = 0; i < timestamps.length; i++)
|
||||||
expect(Math.abs(timestamps[i] - expectedTimestamps[i]), `expected: ${expectedTimestamps}; actual: ${timestamps}`).toBeLessThan(1000);
|
expect(Math.abs(timestamps[i] - expectedTimestamps[i]), `expected: ${expectedTimestamps}; actual: ${timestamps}`).toBeLessThan(1000);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue