This commit is contained in:
cudr
2019-03-15 05:13:18 +03:00
parent 0dd2d2eb4a
commit d2cda4b6c0
3 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
<h1>A page</h1>
<a href="dirs/foo/xyz">same segment</a>

View File

@@ -0,0 +1 @@
<h1>B page</h1>

View File

@@ -275,4 +275,15 @@ describe('basics', function() {
await wait(50);
assert.equal(await title(), 'bar');
});
});
it('navigates between dynamic routes with same segments', async () => {
await page.goto(`${base}/dirs/bar/xyz`);
await start();
assert.equal(await title(), 'A page');
await page.click('[href="dirs/foo/xyz"]');
await wait(50);
assert.equal(await title(), 'B page');
});
});