mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-24 09:50:01 +00:00

* feat: playwright CI tests * feat: ran python linting * feat: updated workflow to run in PR * feat: updated server start step * feat: fixed playwright run command * feat: fix matrix value * feat: removed browser option in test run * feat: updated typo in make file * feat: move playwritgh installation * feat: fail CI on error * feat: save tracing on failure * feat: enforce expect on .fill * feat: change tracing to video * feat: clean up code and update CI workflow for main branch
Playwright end-to-end tests
https://playwright.dev/python/docs/intro
Structure
In the e2e
folder you will find 2 folders and 1 file:
conftest.py
: defines some module scope fixture (module here is thee2e
folder). All tests will useinit_with_redshift
by default -- ingestin metadata from a redshift service. The ingestion will only happens on the first test execution. Thecreate_data_consumer_user
allows tests to login as a Data Consumer and perform some actionsconfigs
: holds all the shared configuration. So far we have 2 main classes families (User and Connector) and common functionsentity
: holds entity related tests. It contains a subfolder per source.
Install Dependencies and Run Tests
run make install_e2e_tests
. Run make run_e2e_tests
, you can also pass arguments such as make run_e2e_tests ARGS="--browser webkit"
to run tests against webkit browser or make run_e2e_tests ARGS="--headed --slowmo 100"
to run the tests in slowmo mode and head full.