Skip to content

Commit

Permalink
refine for Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Oct 22, 2024
1 parent 7d99753 commit fa8ad16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file added zktest/src/main/webapp/test2/B101_ZK_5793.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ public class B101_ZK_5793Test extends WebDriverTestCase {
public void testFileupload() {
connect();
waitResponse();
sendKeys(jq("input[type=file]"), System.getProperty("user.dir") + "/src/main/webapp/img/wireless.gif");
sendKeys(jq("input[type=file]"), System.getProperty("user.dir") + "/src/main/webapp/test2/B101_ZK_5793.png");

// try 3 times
int count = 0;
boolean hasProgress = false;
while (count++ < 3) {
sleep(150);
while (count++ < 200) {
sleep(10);
if (jq(".z-fileupload-manager.z-popup-open").length() > 0) {
hasProgress = true;
break;
}
}
if (!isUnix()) // ignore to test on Jenkins
assertTrue(hasProgress);

assertTrue(hasProgress);
}
}

0 comments on commit fa8ad16

Please sign in to comment.