Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Wait until save button is visible in a test 🤷‍♂️ #4114

Merged
merged 1 commit into from
Feb 16, 2018

Conversation

chenba
Copy link
Collaborator

@chenba chenba commented Feb 15, 2018

Fixes #4108, maybe?

Since the issue is intermittent and occurs only on CircleCI, it's difficult to say with some degree of certainty that this fixes #4108 (even if the tests have passed in five builds for #4114 on CircleCI).

@@ -224,6 +224,10 @@ describe("Test Screenshots", function() {
return driver.wait(
until.elementLocated(By.css(".preview-button-save"))
);
}).then((saveButton) => {
return driver.wait(
until.elementIsVisible(saveButton)
Copy link
Member

Choose a reason for hiding this comment

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

If this isn't enough to eliminate intermittent failures, there's an element.isEnabled() method which polls for a visible form element to not have the disabled attribute on it. Some discussion in this SO answer. We'd have to start toggling the disabled attribute when frames are loaded, but it could be worth it.

@chenba chenba force-pushed the 4108-ci-selenium-fail branch from 7fc0dba to 9bda135 Compare February 15, 2018 22:12
@chenba chenba changed the title [HOLD] Wait until save button is visible in a test 🤷‍♂️ Wait until save button is visible in a test 🤷‍♂️ Feb 15, 2018
Copy link
Member

@jaredhirsch jaredhirsch left a comment

Choose a reason for hiding this comment

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

Sure, let's do it

@jaredhirsch jaredhirsch merged commit b7c64b0 into mozilla-services:master Feb 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

intermittent selenium bug: ElementNotInteractableError
2 participants