Add debug logging to CI icon status checking
What does this MR do and why?
Add debug logging to CI icon status checking
Tests are failing despite screenshots showing expected state. Adding status logging to help diagnose timing issues in wait_until.
References
How to set up and validate locally
- Test log output should contain details about the CI Status Icon after each check
Sample Output in logs: https://gitlab.com/gitlab-org/gitlab/-/jobs/10927932228 -> tmp -> e2e-tests-env-1.log
Click to expand
[Aug 06 2025 00:46:33 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon all statuses: ["Running", "Passed"]
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- finding all :ci-icon-text with args {:minimum=>1}
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- waiting for loading to complete...
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- found 2 :ci-icon-text
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon all statuses: ["Running", "Passed"]
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon status is Running
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- finding all :ci-icon-text with args {:minimum=>1}
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- waiting for loading to complete...
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- found 2 :ci-icon-text
[Aug 06 2025 00:46:36 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon all statuses: ["Running", "Passed"]
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- finding all :ci-icon-text with args {:minimum=>1}
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- waiting for loading to complete...
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- found 2 :ci-icon-text
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon all statuses: ["Passed", "Passed"]
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon status is Passed
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- finding all :ci-icon-text with args {:minimum=>1}
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- waiting for loading to complete...
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- found 2 :ci-icon-text
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- CI Icon all statuses: ["Passed", "Passed"]
[Aug 06 2025 00:46:39 UTC (E2E Tests ENV-1)] DEBUG -- ended retry
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by John McDonnell