Skip to content

fix(test): use fixture data for timeline drill-down test - #21338

Merged
davdhacs merged 2 commits into
davdhacs/ui-e2efrom
davdhacs/fix-timeline-flake
Jun 23, 2026
Merged

davdhacs merged 2 commits into
davdhacs/ui-e2efrom
davdhacs/fix-timeline-flake

Conversation

@davdhacs

Copy link
Copy Markdown
Contributor

Description

The deployment timeline drill-down test (deploymentTimeline.test.js) was the only test in the file using real API data. When the getDeploymentEventTimeline query returned empty pods (no process events collected), the timeline rendered without list items. No timeout increase helps because the component renders from a single fetch with no polling.

Switched to fixture data (deploymentEventTimeline.json + podEventTimeline.json), consistent with every other test in this file. The test validates UI navigation behavior (drill down shows pod name + back button), not data availability.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • modified existing tests

How I validated my change

Code review only. The fix applies the same fixture-based pattern used by all other tests in the file. The existing fixtures (deploymentEventTimeline.json, podEventTimeline.json) contain valid pod/container data that exercises the drill-down navigation path.

The "drill down on a pod" test was the only test in deploymentTimeline
that used real API data instead of fixture data. When the API returned
empty pods (no process events collected yet), the test failed because
the timeline list rendered without items — no amount of timeout increase
would help since the data simply wasn't there.

Switch to fixture data (deploymentEventTimeline.json for the deployment
view, podEventTimeline.json for the pod drill-down), consistent with
every other test in this file. This tests the UI navigation behavior
(drill down shows pod name + back button) without depending on live
cluster state.

AI-assisted change.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci

openshift-ci Bot commented Jun 23, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 9812e27b-f90d-439a-865f-034a2208b1e4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch davdhacs/fix-timeline-flake

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The GCR test asserts that the "New integration" button does not exist,
but does so immediately after page visit without waiting for GCR-specific
content to render. On GKE with higher latency, the page may not have
fully settled before the assertion runs, causing a consistent failure.

Wait for the GCR-specific deprecation notice alert before asserting the
button's absence.

AI-assisted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@davdhacs
davdhacs merged commit f71fc21 into davdhacs/ui-e2e Jun 23, 2026
29 of 31 checks passed
@davdhacs
davdhacs deleted the davdhacs/fix-timeline-flake branch June 23, 2026 01:28
@github-actions

github-actions Bot commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit f71fc21. To use with deploy scripts:

export MAIN_IMAGE_TAG=4.12.x-542-gf71fc21f91

davdhacs added a commit that referenced this pull request Jun 23, 2026
Test fixes belong in their own PRs (#21337, #21338, #21341) and
should not be merged into the ui-e2e workflow PR.

Partially generated by AI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant