Skip to content

Commit b661d9e

Browse files
committed
fix test
1 parent 01871a3 commit b661d9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/kit/test/apps/options-2/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
<p data-testid="base">base: {base}</p>
88
<p data-testid="assets">assets: {assets}</p>
99

10-
<a href="{base}/hello">Go to /hello</a>
10+
<a href="{base}/hello" data-testid="link">Go to /hello</a>

packages/kit/test/apps/options-2/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test.describe('paths', () => {
4949
}) => {
5050
await page.goto('/basepath');
5151
expect(new URL(page.url()).pathname).toBe('/basepath/');
52-
await clicknav('[href="/basepath/hello"]');
52+
await clicknav('[data-testid="link"]');
5353
expect(new URL(page.url()).pathname).toBe('/basepath/hello');
5454
});
5555
});

0 commit comments

Comments
 (0)