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

WebUI tests: Fix 'Button is not displayed' exception #4189

Closed
wants to merge 1 commit into from

Conversation

serg-cymbaluk
Copy link
Contributor

Add a small timeout (up to 1 second) which allows to prevent exceptions when
WebDriver attempts to click a button before it is rendered.

Ticket: https://pagure.io/freeipa/issue/8169

@serg-cymbaluk serg-cymbaluk added ipa-4-7 WebUI Pull Request related to WebUI ipa-4-8 Mark for backport to ipa 4.8 labels Feb 2, 2020
@serg-cymbaluk serg-cymbaluk added the re-run Trigger a new run of PR-CI label Feb 2, 2020
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Feb 3, 2020
@serg-cymbaluk serg-cymbaluk added the needs review Pull Request is waiting for a review label Feb 3, 2020

# The small timeout (up to 1 second) allows to prevent exceptions when
# driver attempts to click a button before it is rendered.
WebDriverWait(self.driver, 1, 0.2).until(
Copy link

Choose a reason for hiding this comment

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

I suggest to increase max wait time to 5 seconds - we execute tests in VMs on heavily loaded hosts and I feel that browser can get stuck for second or two.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, agree, fixed.

@wladich
Copy link

wladich commented Feb 4, 2020

LGTM.
Please remove temp commit and I will ACK the PR

@serg-cymbaluk serg-cymbaluk removed the needs review Pull Request is waiting for a review label Feb 4, 2020
Add a small timeout (up to 5 seconds) which allows to prevent exceptions when
WebDriver attempts to click a button before it is rendered.

Ticket: https://pagure.io/freeipa/issue/8169

Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
@serg-cymbaluk serg-cymbaluk added the re-run Trigger a new run of PR-CI label Feb 5, 2020
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Feb 5, 2020
@wladich wladich added the ack Pull Request approved, can be merged label Feb 5, 2020
@wladich
Copy link

wladich commented Feb 5, 2020

ACK

@serg-cymbaluk serg-cymbaluk added the pushed Pull Request has already been pushed label Feb 5, 2020
@serg-cymbaluk
Copy link
Contributor Author

master:

  • 9418042 WebUI tests: Fix 'Button is not displayed' exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged ipa-4-8 Mark for backport to ipa 4.8 pushed Pull Request has already been pushed WebUI Pull Request related to WebUI
Projects
None yet
3 participants