Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Improve Object Storage E2E flake related to ACL select #9034

Merged

Conversation

jdamore-linode
Copy link
Contributor

Description 📝

  • Uses the autocompletePopper UI helper to interact with the Object Storage ACL select element, eliminating the issue that causes occasional flakiness with the Object Storage end-to-end tests.
  • Wraps the EnhancedSelect component's menu list items in a div with a data-qa-autocomplete-popper attribute. This was done so that our e2e autocompletePopper UI helper works with our old selects (EnhancedSelect) in addition to newer selects based on MUI. I was reluctant to change the DOM structure but haven't observed any issues or changes stemming from this addition -- happy to revisit if the team would prefer another approach.

How to test 🧪

yarn && yarn build && yarn start:manager:ci and then:

yarn cy:run -s "cypress/e2e/objectStorage/object-storage.e2e.spec.ts"

Confirm that the tests pass. Optionally, run the test multiple times to ensure there is no flake related to the ACL select.

@jdamore-linode jdamore-linode added e2e Indicates that a PR touches Cypress tests in some way Ready for Review labels Apr 19, 2023
@jdamore-linode jdamore-linode self-assigned this Apr 19, 2023
@cypress
Copy link

cypress bot commented Apr 19, 2023

1 flaky tests on run #3076 ↗︎

0 149 3 0 Flakiness 1

Details:

Use autocompletePopper UI helper to interact with obj ACL select
Project: Cloud Manager E2E Commit: 4dd138af27
Status: Passed Duration: 16:19 💡
Started: Apr 19, 2023 9:11 PM Ended: Apr 19, 2023 9:27 PM
Flakiness  cypress/e2e/firewalls/migrate-linode-with-firewall.spec.ts • 1 flaky test

View Output Video

Test Artifacts
Migrate Linode With Firewall > migrates linode with firewall - real data Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

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

LGTM!
image

@cpathipa cpathipa added the Approved Multiple approvals and ready to merge! label Apr 21, 2023
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Ran the test 5 times and 5/5 passed, so no flake noticed. 🚢 And the modification to MenuList.tsx seems fine to me.

@jdamore-linode jdamore-linode merged commit bd41a35 into linode:develop Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! e2e Indicates that a PR touches Cypress tests in some way
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants