Skip to content

Conversation

@yonasberhe23
Copy link
Contributor

@yonasberhe23 yonasberhe23 commented Oct 13, 2025

Summary

Fixes #rancher/qa-tasks#2053

Fixes flaky repository tests:

  • Replaced closeActionMenu() escape key method with proper rowActionMenuClose() that validates aria-expanded state
  • Added cy.waitForRepositoryDownload() and cy.waitForResourceState() to replace arbitrary waits
  • Simplified deletion logic using cy.deleteRancherResource() and removed redundant methods

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes
  • The PR has been reviewed in terms of Accessibility

@yonasberhe23 yonasberhe23 added this to the v2.13.0 milestone Oct 13, 2025
@yonasberhe23 yonasberhe23 self-assigned this Oct 13, 2025
@yonasberhe23 yonasberhe23 marked this pull request as ready for review October 13, 2025 21:45
@yonasberhe23 yonasberhe23 requested review from IsaSih and izaac October 13, 2025 21:45
@yonasberhe23 yonasberhe23 changed the title fix repositories test Automation: fix repositories test Oct 13, 2025
@yonasberhe23 yonasberhe23 requested a review from izaac October 14, 2025 22:55
Copy link
Contributor

@izaac izaac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit. Looking good.

@yonasberhe23 yonasberhe23 force-pushed the fix_repositories_test branch from 0a9411f to f38280e Compare October 15, 2025 04:24
@yonasberhe23 yonasberhe23 requested a review from izaac October 15, 2025 04:26
@yonasberhe23 yonasberhe23 force-pushed the fix_repositories_test branch from f38280e to 8587c2c Compare October 15, 2025 13:25
Copy link
Contributor

@izaac izaac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@yonasberhe23 yonasberhe23 merged commit 1024889 into rancher:master Oct 15, 2025
60 of 61 checks passed
@yonasberhe23 yonasberhe23 deleted the fix_repositories_test branch October 15, 2025 14:51
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.

2 participants