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

Fix menu.spec.js #7192

Merged
merged 2 commits into from
Jul 20, 2020
Merged

Fix menu.spec.js #7192

merged 2 commits into from
Jul 20, 2020

Conversation

NickLaMuro
Copy link
Member

Fixes two issues with the spec:

  • menuItems was not doing any form of a "wait" before trying to fetch the items
  • Fixed invalid Menu navigations (trying to click on a top level menu) after the Carbon style menu changes from Carbon 10 navbar & menu #6963

This test file should pass now.

Links

@NickLaMuro
Copy link
Member Author

@miq-bot assign @himdel

cc @jrafanie @jvlcek

@himdel
Copy link
Contributor

himdel commented Jul 15, 2020

LGTM :)

@jrafanie
Copy link
Member

👍

@NickLaMuro NickLaMuro force-pushed the cypress-fix-menu-spec branch from fb18588 to 40887ef Compare July 16, 2020 22:07
By using a `cy.get` with this command, it forces a `wait` for the DOM to
load with the menu.  Using `cy.window` doesn't (seem to) do that.

This probably could be smaller, but this is a workaround to fix the
currently breaking tests using this method (currently only
`menu.spec.js`).
Clicking top level menu items is no longer supported with the Carbon
styles, so fixing the specs to better reflect the current functionality,
or commenting out places where it isn't valid.

Most likely broken because of these changes:

ManageIQ#6963
@NickLaMuro NickLaMuro force-pushed the cypress-fix-menu-spec branch from 40887ef to 95de4e6 Compare July 17, 2020 16:50
@miq-bot
Copy link
Member

miq-bot commented Jul 17, 2020

Checked commits NickLaMuro/manageiq-ui-classic@9d7bee7~...95de4e6 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@himdel himdel merged commit 382d0d1 into ManageIQ:master Jul 20, 2020
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.

5 participants