adam-stasiak opened a new pull request #11207: URL: https://github.com/apache/incubator-superset/pull/11207
### SUMMARY <!--- Describe the change below, including rationale and design decisions --> This PR provides an option to run locally cypress tests with docker container. I updated contributor guide with required steps for this and added steps for making local CRUD views enabled. It was needed to add an option to drop database before loading tests to have always the same initial state (cli.py was modified). It needs to be tested before approve! ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF <!--- Skip this if not applicable --> ### TEST PLAN <!--- What steps should be taken to verify the changes --> Scenario 1 run ```docker system prune``` to have very fresh setup of docker go to incubator-superset and run ```SUPERSET_CYPRESS_CONFIG=no SUPERSET_CONFIG=tests.superset_test_config docker-compose up``` go to cypress folder ```cd superset-frontend/cypress-base``` run ```./node_modules/cypress/bin/cypress run``` tests should succeedes Scenario 2 on master branch run docker-compose login to app with admin/admin and ensure you can see more than 4 dashboards on list switch to this branch run ```SUPERSET_CYPRESS_CONFIG=no SUPERSET_CONFIG=tests.superset_test_config docker-compose up``` login to app with admin/general and ensure you can see 4 dashboards on list on master branch run docker-compose login to app with admin/admin and ensure you can see more than 4 dashboards on list @eschutho I added your suggested code to cli.py. ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Changes UI - [ ] Requires DB Migration. - [ ] Confirm DB Migration upgrade and downgrade tested. - [x] Introduces new feature or API - [ ] Removes existing feature or API ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
