test: Add new Overview page UI tests and update login flow #850
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Closes #839
UI test issue: #556
Changes
Tests
test_getting_started_section: Verifies all Getting Started resource cards and documentation links are present and correcttest_gateways_section: Validates Gateway status metrics (Total, Healthy, Unhealthy) are displayedtest_gateways_analysis_section: Creates Gateway via UI, verifies metrics update and Gateway becomes healthy, then deletes ittest_policies_section: Creates policy via UI, verifies it appears in overview and enforces correctly, then deletes it (uses RateLimitPolicy as sample since other policies tested separately)test_httproute_section: Creates HTTPRoute via UI, verifies it appears in overview, then deletes itNew Features
OverviewPage,GatewayNewPageYaml,HTTPRouteNewPageYaml, andPolicyDetailsPagefor CRUD supportBaseResourceNewPageYamlbase class providing shared editor interaction and delete functionalityRefactoring
conftest.pyfrompolicies/to parentconsole_plugin/directory to share authentication state across all UI testsVerification steps
Run the new Overview page tests:
Run all UI tests to verify shared conftest changes don't break existing policy tests:
Run using the UI Container test image:
docker run --rm \ -v /tmp/ocp/kubeconfig.kua-420-2:/run/kubeconfig:ro \ -v $(pwd)/config/settings.local.yaml:/run/secrets.yaml:ro \ -v $(pwd)/test-run-results:/test-run-results \ quay.io/rh-ee-eroche/testsuite-ui:unstable