Skip to content

Commit b3a822c

Browse files
committed
feat(nowait): allow waitUntil:nowait for actions
1 parent 64332b4 commit b3a822c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/navigation.spec.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -921,20 +921,14 @@ module.exports.describe = function({testRunner, expect, playwright, MAC, WIN, FF
921921
expect(frame.url()).toBe(server.EMPTY_PAGE);
922922
expect(messages.join('|')).toBe('route|waitForNavigation|click');
923923
});
924-
fit('nowait', async({page, server}) => {
924+
fit.repeat(10)('nowait', async({page, server}) => {
925925
const messages = [];
926-
server.setRoute('/empty.html', async (req, res) => {
927-
messages.push('route');
928-
res.end('done');
929-
});
930-
931926
await page.setContent(`<a href="${server.EMPTY_PAGE}">empty.html</a>`);
932-
933927
await Promise.all([
934928
page.click('a', { waitUntil: 'nowait' }).then(() => messages.push('click')),
935929
page.waitForNavigation({ waitUntil: 'commit' }).then(() => messages.push('waitForNavigation'))
936930
]);
937-
expect(messages.join('|')).toBe('route|waitForNavigation|click');
931+
expect(messages.join('|')).toBe('click|waitForNavigation');
938932
});
939933
});
940934

0 commit comments

Comments
 (0)