testbench icon indicating copy to clipboard operation
testbench copied to clipboard

Tests should wait for the router to complete routing operations

Open Artur- opened this issue 1 year ago • 1 comments

If you have a TypeScript view in your app, e.g.

    {
        path: 'hello',
        component: 'hello-world-view',
        action: async () => {
            await import('./typescript/hello-world-view');
        },
    },

and you have a test that opens /hello then it would be expected that the test waits until hello-world-view has been imported and rendered before proceeding. Right now, it proceeds as soon as the index page has been rendered and router just started fetching hello-world-view

Artur- avatar Mar 31 '23 07:03 Artur-