E2E test setup - Make it easy to change how tests are set up when testing a feature behind a feature flag
While improving test setup, we could also improve how we handle setup of a feature behind a feature flag. At the moment a test will run with a feature flag enabled or disabled, but it can take a lot of work to change Resources/Page objects to switch from one state to the other.
Tasks
-
Get initial overview of the situation -
Fix a spot for feature flag testing documentation -
Document UI selector management on feature flag testing -
Document Resource creation on feature flag testing -
Document Cache management on feature flag change
One option is to handle feature flags in E2E tests the same way they're handled in application code - have different code paths to handle each feature flag state. However, this currently requires admin access via the API.
Edited by Tomislav Nikić