Skip to content

Commit

Permalink
[java] Deleting an unnecessary sleep, tests should work without it
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Apr 12, 2020
1 parent 827f888 commit 29be5ab
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ public void uploadsFile() throws Throwable {
driver.findElement(By.id("upload")).sendKeys(testFile.getAbsolutePath());
driver.findElement(By.id("go")).submit();

// Nasty. Sorry.
Thread.sleep(50);

driver.switchTo().frame("upload_target");
new WebDriverWait(driver, Duration.ofSeconds(10)).until(
d -> d.findElement(By.xpath("//body")).getText().equals(FILE_CONTENTS));
Expand Down

0 comments on commit 29be5ab

Please sign in to comment.