tirkarthi opened a new pull request, #45607: URL: https://github.com/apache/airflow/pull/45607
This adds basic tests to ensure filter buttons in dags list page works. This also adds tests for dag documentation button and modal opening flow on click. * Create a router that has all the routes configured to a memory router. https://api.reactrouter.com/v7/functions/react_router.createMemoryRouter.html * Create a wrapper that uses the configured router and also accepts `initialEntries` to load the tests in a given URL location for assertion. There were some issues in using existing `Wrapper.tsx` with the changes in existing tests so created using `AppWrapper.tsx` with the changes to keep them separate. * vitest recommends using msw for mocking requests. https://vitest.dev/guide/mocking#requests * Handlers structured as per best practices to mock endpoints : https://mswjs.io/docs/best-practices/structuring-handlers * On each test create a server with the handlers so that the test data is used. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
