Skip to content

Commit

Permalink
Fixes Workers test after Boostrap overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Sep 24, 2024
1 parent 2c73ced commit 9fbdc6d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public void runWorkersPageTest() {


public void runWorkersCheckBoxTest() throws IOException {
JavascriptExecutor js = (JavascriptExecutor) driver;
Boolean scriptPass = false;
try {
log.info("------ START WorkersTestIT:runWorkersCheckBoxTest ------");
Expand All @@ -69,8 +70,11 @@ public void runWorkersCheckBoxTest() throws IOException {

WebElement enable = findElById("pv-test_workers_page");
log.info("Enabling worker0000 only...");
js.executeScript("arguments[0].scrollIntoViewIfNeeded();", enable);
sleep(1000);
enable.click();

log.info("Looking for worker0000 checkbox.");
waitForElementXPath("//label[contains(text(),'worker0000')]");

driver.findElement(By.xpath("//label[contains(text(),'worker0000')]")).click();
Expand Down Expand Up @@ -117,6 +121,8 @@ public void runWorkersCheckBoxTest() throws IOException {
//Enable all workers again.
goToPage("deployments");
WebElement enableWorker = findElById("pv-test_workers_page");
js.executeScript("arguments[0].scrollIntoViewIfNeeded();", enableWorker);
sleep(1000);
log.info("Disabling worker0000...");
enableWorker.click();

Expand Down

0 comments on commit 9fbdc6d

Please sign in to comment.