Skip to content

Commit

Permalink
Restore some loader.waitOnClosed() calls (#11348)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Mäder <[email protected]>
  • Loading branch information
tsmaeder committed Sep 26, 2018
1 parent 31c2f83 commit 4f44a36
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ public void waitItem(String path) {
* @param timeout waiting timeout in seconds
*/
public void waitItem(String path, int timeout) {
loader.waitOnClosed();

seleniumWebDriverHelper.waitVisibility(
By.xpath(format(PROJECT_EXPLORER_ITEM_TEMPLATE, path)), timeout);
}
Expand All @@ -301,6 +303,8 @@ public void waitItem(String path, int timeout) {
* @param reference git reference e.g. branch, tag or commit
*/
public void waitReferenceName(String reference) {
loader.waitOnClosed();

seleniumWebDriverHelper.waitTextEqualsTo(projectReference, "(" + reference + ")");
}

Expand Down Expand Up @@ -440,6 +444,8 @@ public List<WebElement> waitVisibilitySeveralItemsByName(String... names) {
* @return found {@link WebElement}
*/
public WebElement waitVisibilityByName(String name, int timeOut) {
loader.waitOnClosed();

return seleniumWebDriverHelper.waitVisibility(
By.xpath(format("//div[@id='gwt-debug-projectTree']//div[text()='%s']", name)), timeOut);
}
Expand Down Expand Up @@ -610,6 +616,7 @@ public void waitDisappearItemByPath(String path) {
* @param folderType folder's type, defined in {@link FolderTypes}
*/
public void waitDefinedTypeOfFolder(String path, FolderTypes folderType) {
loader.waitOnClosed();
seleniumWebDriverHelper.waitVisibility(
By.xpath(
format(
Expand Down

0 comments on commit 4f44a36

Please sign in to comment.