test: page.reload() on a page with a hash (#21152)
https://github.com/microsoft/playwright/issues/21145
This commit is contained in:
parent
681d584442
commit
8b8444dacc
|
|
@ -185,6 +185,14 @@ it('page.reload should work with cross-origin redirect', async ({ page, server,
|
||||||
await expect(page).toHaveURL(server.CROSS_PROCESS_PREFIX + '/title.html');
|
await expect(page).toHaveURL(server.CROSS_PROCESS_PREFIX + '/title.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('page.reload should work on a page with a hash', async ({ page, server, browserName }) => {
|
||||||
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/21145' });
|
||||||
|
it.fixme(browserName === 'firefox');
|
||||||
|
await page.goto(server.EMPTY_PAGE + '#hash');
|
||||||
|
await page.reload();
|
||||||
|
await expect(page).toHaveURL(server.EMPTY_PAGE + '#hash');
|
||||||
|
});
|
||||||
|
|
||||||
it('page.goBack during renderer-initiated navigation', async ({ page, server }) => {
|
it('page.goBack during renderer-initiated navigation', async ({ page, server }) => {
|
||||||
await page.goto(server.PREFIX + '/one-style.html');
|
await page.goto(server.PREFIX + '/one-style.html');
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue