diff --git a/packages/__tests__/router-lite/smoke-tests.spec.ts b/packages/__tests__/router-lite/smoke-tests.spec.ts
index 9cc3dca8a5..bc2d29d2f8 100644
--- a/packages/__tests__/router-lite/smoke-tests.spec.ts
+++ b/packages/__tests__/router-lite/smoke-tests.spec.ts
@@ -1137,148 +1137,150 @@ describe('router (smoke tests)', function () {
assert.areTaskQueuesEmpty();
});
- it('will load the root-level fallback when navigating to a non-existing route - parent-child - children without fallback', async function () {
- @customElement({ name: 'gc-11', template: 'gc11' })
- class GrandChildOneOne { }
+ for (const attr of ['href', 'load']) {
+ it(`will load the root-level fallback when navigating to a non-existing route - parent-child - children without fallback - attr: ${attr}`, async function () {
+ @customElement({ name: 'gc-11', template: 'gc11' })
+ class GrandChildOneOne { }
- @customElement({ name: 'gc-12', template: 'gc12' })
- class GrandChildOneTwo { }
+ @customElement({ name: 'gc-12', template: 'gc12' })
+ class GrandChildOneTwo { }
- @route({
- routes: [
- { id: 'gc11', path: ['', 'gc11'], component: GrandChildOneOne },
- { id: 'gc12', path: 'gc12', component: GrandChildOneTwo },
- ],
- })
- @customElement({
- name: 'c-one',
- template: `c1
+ @route({
+ routes: [
+ { id: 'gc11', path: ['', 'gc11'], component: GrandChildOneOne },
+ { id: 'gc12', path: 'gc12', component: GrandChildOneTwo },
+ ],
+ })
+ @customElement({
+ name: 'c-one',
+ template: `c1
`,
- })
- class ChildOne { }
+ })
+ class ChildOne { }
- @customElement({ name: 'gc-21', template: 'gc21' })
- class GrandChildTwoOne { }
+ @customElement({ name: 'gc-21', template: 'gc21' })
+ class GrandChildTwoOne { }
- @customElement({ name: 'gc-22', template: 'gc22' })
- class GrandChildTwoTwo { }
+ @customElement({ name: 'gc-22', template: 'gc22' })
+ class GrandChildTwoTwo { }
- @route({
- routes: [
- { id: 'gc21', path: ['', 'gc21'], component: GrandChildTwoOne },
- { id: 'gc22', path: 'gc22', component: GrandChildTwoTwo },
- ],
- })
- @customElement({
- name: 'c-two',
- template: `c2
+ @route({
+ routes: [
+ { id: 'gc21', path: ['', 'gc21'], component: GrandChildTwoOne },
+ { id: 'gc22', path: 'gc22', component: GrandChildTwoTwo },
+ ],
+ })
+ @customElement({
+ name: 'c-two',
+ template: `c2
`,
- })
- class ChildTwo { }
+ })
+ class ChildTwo { }
- @customElement({
- name: 'not-found',
- template: 'nf',
- })
- class NotFound { }
+ @customElement({
+ name: 'not-found',
+ template: 'nf',
+ })
+ class NotFound { }
- @route({
- routes: [
- {
- path: ['', 'c1'],
- component: ChildOne,
- },
- {
- path: 'c2',
- component: ChildTwo,
- },
- {
- path: 'not-found',
- component: NotFound,
- },
- ],
- fallback: 'not-found',
- })
- @customElement({
- name: 'my-app',
- template: `