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 how integration tests activate adding a cluster via SpeedDial #2569

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

jim-docker
Copy link
Contributor

@jim-docker jim-docker commented Apr 19, 2021

In adding minikube cluster, simulate hover on SpeedDial to bring up the "Add from kubeconfig" SpeedDialAction

Before this fix, the integration tests run on Ubuntu by CI and locally fail most of the time to add a cluster via the SpeedDial element.

This fix involves using spectron client's moveToObject() method (which appears to rely on the moveTo() method, which is deprecated).

tries to fix #2564

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
@jim-docker jim-docker marked this pull request as ready for review April 19, 2021 19:23
@jim-docker jim-docker requested a review from a team as a code owner April 19, 2021 19:24
@jim-docker jim-docker requested review from ixrock, Nokel81 and jakolehm and removed request for a team April 19, 2021 19:24
@Nokel81
Copy link
Collaborator

Nokel81 commented Apr 19, 2021

@jim-docker Is it deprecated in favour of something else?

@jim-docker
Copy link
Contributor Author

@jim-docker Is it deprecated in favour of something else?

Yes, the actions command, which I've tried to use before to fix other issues. IIRC they aren't supported in the version of Spectron we're stuck on. (I could not get them to work in any case)

@Nokel81
Copy link
Collaborator

Nokel81 commented Apr 19, 2021

Ah okay thanks for the info. So this will be something that we will need to do when we upgrade to the latest version of electron (which is needed for spectron).

@jakolehm jakolehm changed the title fix how integration tests activate adding a cluster via SpeedDial Fix how integration tests activate adding a cluster via SpeedDial Apr 20, 2021
Copy link
Contributor

@jakolehm jakolehm left a comment

Choose a reason for hiding this comment

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

🏆

@jakolehm jakolehm merged commit adec401 into master Apr 20, 2021
@jakolehm jakolehm deleted the fix/integration-tests-speed-dial-related branch April 20, 2021 03:55
@jakolehm jakolehm mentioned this pull request Apr 20, 2021
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.

Integration tests are flaky under github actions
3 participants