vaadin / testbench

Vaadin TestBench is a tool for automated user interface testing of Vaadin applications.
https://vaadin.com/testbench
Other
20 stars 22 forks source link

Tests should wait for the router to complete routing operations #1626

Open Artur- opened 1 year ago

Artur- commented 1 year ago

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

platosha commented 1 year ago

Note that with React projects Hilla uses a different router with its own ways for lazy loading views.