testbench
testbench copied to clipboard
Tests should wait for the router to complete routing operations
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
Note that with React projects Hilla uses a different router with its own ways for lazy loading views.