feat(core): mode in query string (#7904)

This commit is contained in:
EYHN
2024-08-16 10:59:43 +00:00
parent 83716c2fd9
commit c822594882
16 changed files with 174 additions and 29 deletions

View File

@@ -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,
});