mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-16 12:54:38 +00:00
add test
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user