File tree 2 files changed +10
-0
lines changed
packages/kit/test/apps/basics
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 7
7
<a href =" /routing/a" >a</a >
8
8
<a href =" /routing/ambiguous/ok.json" rel =" external" >ok</a >
9
9
<a href ="http://localhost: {$page .url .searchParams .get (' port' )}" >elsewhere</a >
10
+ <a href =" /static.json" >static.json</a >
10
11
11
12
<div class =" hydrate-test" />
Original file line number Diff line number Diff line change @@ -2099,6 +2099,15 @@ test.describe.parallel('Routing', () => {
2099
2099
await page . goto ( '/routing/rest/complex/prefix-one/two/three' ) ;
2100
2100
expect ( await page . textContent ( 'h1' ) ) . toBe ( 'parts: one/two/three' ) ;
2101
2101
} ) ;
2102
+
2103
+ test ( 'links to unmatched routes result in a full page navigation, not a 404' , async ( {
2104
+ page,
2105
+ clicknav
2106
+ } ) => {
2107
+ await page . goto ( '/routing' ) ;
2108
+ await clicknav ( '[href="/static.json"]' ) ;
2109
+ expect ( await page . textContent ( 'body' ) ) . toBe ( '"static file"\n' ) ;
2110
+ } ) ;
2102
2111
} ) ;
2103
2112
2104
2113
test . describe . parallel ( 'Session' , ( ) => {
You can’t perform that action at this time.
0 commit comments