Skip to content

Commit f1c9c3d

Browse files
test(e2e): update search URL assertion for id-based routes
assert /type/:id/:slug format after selecting a search result replace legacy name-based expectation to match stable-id routing Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
1 parent 13d7bd0 commit f1c9c3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e/search.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ test('search navigates to result', async ({ page }) => {
1414
await expect(dialog.getByText('DocKind').first()).toBeVisible();
1515

1616
await dialog.getByText('DocKind').first().click();
17-
await expect(page).toHaveURL(/\/type\/DocKind/);
17+
await expect(page).toHaveURL(/\/type\/[0-9a-f]{8}\/dockind$/);
1818
});

0 commit comments

Comments
 (0)