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

test(e2e): adjust selectors for rbac test #2155

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nilgaar
Copy link
Contributor

@nilgaar nilgaar commented Jan 8, 2025

Description

a race condition made a e2e rbac test fail from time to time

Which issue(s) does this PR fix

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

@nilgaar nilgaar requested a review from a team as a code owner January 8, 2025 09:01
@openshift-ci openshift-ci bot requested review from gustavolira and josephca January 8, 2025 09:02
@nilgaar nilgaar changed the title test[e2e]: adjust selectors for rbac test test(e2e): adjust selectors for rbac test Jan 8, 2025
Copy link
Contributor

github-actions bot commented Jan 8, 2025

Copy link
Contributor

github-actions bot commented Jan 8, 2025

let nextButton2: Locator;
do {
nextButton2 = page.getByTestId("nextButton-2");
} while (nextButton2.all.length > 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be Infinite Loop if nextButton2's length never decreases to 1

Copy link
Contributor

Choose a reason for hiding this comment

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

may be you can use page.waitForFunction()

Copy link
Contributor

Choose a reason for hiding this comment

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

anyway I guess it would be timedout so doesn't matter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you Subhash for taking a look at it. I did a fix that uses attempts too.
As the e2e are not running, I had to put the PR on hold...

@subhashkhileri
Copy link
Contributor

/lgtm

Copy link

openshift-ci bot commented Jan 8, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: subhashkhileri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jan 8, 2025
@nilgaar
Copy link
Contributor Author

nilgaar commented Jan 8, 2025

/test all

Copy link

openshift-ci bot commented Jan 8, 2025

@nilgaar: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-tests c77fef5 link true /test e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link

openshift-ci bot commented Jan 9, 2025

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm label Jan 9, 2025
@nilgaar
Copy link
Contributor Author

nilgaar commented Jan 9, 2025

/test all

Copy link

openshift-ci bot commented Jan 9, 2025

@nilgaar: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

@nilgaar nilgaar requested a review from subhashkhileri January 9, 2025 09:59
@nilgaar
Copy link
Contributor Author

nilgaar commented Jan 9, 2025

/hold

Copy link
Contributor

github-actions bot commented Jan 9, 2025

@nilgaar
Copy link
Contributor Author

nilgaar commented Jan 10, 2025

/test all

Copy link

openshift-ci bot commented Jan 10, 2025

@nilgaar: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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