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 for E2E Carvel test 04 selectOption #5273

Merged
merged 1 commit into from Sep 2, 2022

Conversation

castelblanque
Copy link
Collaborator

Signed-off-by: Rafa Castelblanque rcastelblanq@vmware.com

Description of the change

Trivial PR trying to fix the error appearing with E2E test 04 for Carvel.
It is the typical error on E2E CI that fails from time to time, but I noticed that the frequency has been increasing lately.

Benefits

CI pipelines should pass successfully more often.

Possible drawbacks

That this PR does not really fix the issue.

Applicable issues

Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
@netlify
Copy link

netlify bot commented Sep 1, 2022

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 26ec571
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/6310cb8dd81b65000819a30b

Comment on lines +27 to +28
const versionSelector = await page.$('select[name="package-versions"]')
await versionSelector?.selectOption("2.0.0")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think (not sure though) you can use the page.locator (which should auto-wait) and then use the selectOption, like

  await page.locator("select[name="package-versions"]").selectOption("2.0.0");

But, if your fix is proven to work, +1. Thanks for fixing it, it was generating some headaches recently!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The underlying problem is not that the select control is not found, but that the option selected with selectOption was not being applied. Analyzing the failing tests dump shows that Kubeapps backend was receiving version 3.0.0-rc.1 (default one).

Let's see if this consistently fixes the problem, otherwise we'll have to try other approaches.

@castelblanque castelblanque merged commit db9eb79 into main Sep 2, 2022
@castelblanque castelblanque deleted the 5267-e2e-carvel-test-bugfix branch September 2, 2022 07: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.

E2E test 04 for Carvel fails many times across different branches
3 participants