Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Functional Tests using Playwright and Behave #31
* Initial locally working example tests Add dependencies * Run in CI Github Action Add missing dependency Ignore pylint false negative Playwright install in action and try to understand if we have pg_dump available Try to understand if we have pg_dump available Set paths to PG client tools, remove debugging outputs Update the action runner postgres client apt get update first Try the postgres package instead Try brew installation Use path to brew Add brew link Try pointing the pg_dump/restore to the brew install location * Matrix the functional tests on browser * Record and save traces on test failures Remove step name that may be bad syntax Update step 'if' syntax Fix traces path and ensure traces are enabled Try shortening step name Fail a step intentionally to get a trace Add step name Try removing the new step Re-add step * Refactor feature steps into a better example structure, add info page feature Remove commented code Neaten up code and add comments * Add make targets Add make file comments * Remove browsers with issues from the actions run * Use docker compose instead of manual configured postgres * Use DSLR instead of postgres client * Add basic README documentation on running the test * Add scenario for release page Stop the markdown linter complaining Fail a test on purpose Fix intentional failure * Add more docs Update README * Make compatible with multi-db configuration Format * Small structural refactor, fix factory imports, update Docs * Set the settings module variable in environment.py * Format * Move environment variable setting to the module level * Add missing README links * Fix README wording * Fix PR issues, make the test development app a separate compose file * First round or PR comments addressed, WIP on fixing issues * Improve code example * Address more PR comments, tests fix still WIP * Fix markdown that prettier broke * Fix code example * Format * Remove checks for missing titles * Use behave verbose mode to see error logs * Add a sleep to check if there's a timing issue * Check if the issue is related to removing the dev app * Try preparing the test database with migrations * Fix headings, fix test env initialisation issues, utilise compose extends to reduce duplication * Use existing factory classes, remove duplication * README updates and fixes * Update functional_tests/steps/home_page.py Make pylint comments more readable Co-authored-by: Dan Braghiș <[email protected]> * Update functional_tests/steps/release_page.py Make pylint comments more readble Co-authored-by: Dan Braghiș <[email protected]> * Use readable pylint names instead of codes * Remove verbose flag from CI * Intentionally fail a scenario for demonstration purposes * Revert intentional fail * Fix incorrect ports in dev app compose * Update functional_tests/README.md Co-authored-by: Mebin Abraham <[email protected]> * Update functional_tests/README.md Co-authored-by: Mebin Abraham <[email protected]> * Address review comments * Streamline CI steps with make command * Address review comments, update make targets and comments * More consistent use of settings flag * Fix broken auto-format * Attempt to fix formatting * Format * Resolve merge conflicts * Fix table of contents formatting * Fix test link location --------- Co-authored-by: Dan Braghiș <[email protected]> Co-authored-by: Mebin Abraham <[email protected]> Co-authored-by: Dan Braghiș <[email protected]>
- Loading branch information