feat(core): mode in query string (#7904)
This commit is contained in:
@@ -6,9 +6,10 @@ import { expect } from '@playwright/test';
|
||||
test('goto not found page', async ({ page }) => {
|
||||
await openHomePage(page);
|
||||
await waitForEditorLoad(page);
|
||||
const currentUrl = page.url();
|
||||
const invalidUrl = currentUrl.concat('invalid');
|
||||
await page.goto(invalidUrl);
|
||||
const currentUrl = new URL(page.url());
|
||||
const invalidUrl = (currentUrl.pathname =
|
||||
currentUrl.pathname.concat('invalid'));
|
||||
await page.goto(invalidUrl.toString());
|
||||
await expect(page.getByTestId('not-found')).toBeVisible({
|
||||
timeout: 10000,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user