Skip to content

Commit

Permalink
Fixes more tests cases for bootstrap upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Sep 24, 2024
1 parent 05df1fa commit 2c73ced
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void processCompletedTest() throws IOException {
String color = driver.findElement(By.className("progress-bar-success")).getCssValue("background-color");
log.info(color);

if (color.equals("rgba(13, 110, 253, 1)")) { //color = blue
if (color.equals("rgba(0, 128, 0, 1)")) {
scriptPass = true;
testCasesCompleted++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void runResultsTest() throws IOException {
scrollTo(historyButton);
historyButton.click();

findOnPage("CWS - History");
findOnPage("History");

WebElement hideLineCheckbox = findElByXPath("//input[@id='showall']");
waitForElement(hideLineCheckbox);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void runStartInitiatorTest() throws IOException {
sleep(1000);
screenShot("InitiatorTestIT-runStartInitiatorTestColor");

if (color.equals("rgba(13, 110, 253, 1)")) { //color = blue
if (color.equals("rgba(0, 128, 0, 1)")) {
scriptPass = true;
testCasesCompleted++;
}
Expand Down Expand Up @@ -331,7 +331,7 @@ public void runCronInitiatorTest() throws IOException {
String color = driver.findElement(By.className("progress-bar-success")).getCssValue("background-color");
log.info(color);

if (color.equals("rgba(13, 110, 253, 1)")) { //color = blue
if (color.equals("rgba(0, 128, 0, 1)")) {
scriptPass = true;
procCounter = procCounter + 2;
testCasesCompleted++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,28 @@ public void runTableColumnTest() throws IOException {
findElByXPath("//div[@id='logData_wrapper']/div/div/div/button/span").click();

log.info("Checking CWS Host.");
findElByXPath("//a[text()='CWS Host']").click();
findElByXPath("//button/span[text()='CWS Host']").click();
sleep(1000);

log.info("Checking CWS Worker ID.");
findElByXPath("//a[text()='CWS Worker ID']").click();
findElByXPath("//button/span[text()='CWS Worker ID']").click();
sleep(1000);

log.info("Checking ProcDefKey.");
findElByXPath("//a[text()='Proc Def Key']").click();
findElByXPath("//button/span[text()='Proc Def Key']").click();
sleep(1000);

log.info("Checking ProcInstId.");
findElByXPath("//a[text()='Proc Inst ID']").click();
findElByXPath("//button/span[text()='Proc Inst ID']").click();
sleep(1000);

wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.tagName("table")));
// wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.tagName("table")));
WebElement myTable = driver.findElement(By.tagName("table"));

log.info("Checking data from table to ensure all checkboxes were clicked: " + myTable.getText());
log.info(myTable.getText());

if (myTable.getText().contains("Time Stamp CWS Host CWS Worker ID Log Level Thread Name Proc Def Key Proc Inst ID Message")) {
if (myTable.getText().contains("Time Stamp\nCWS Host\nCWS Worker ID\nLog Level\nThread Name\nProc Def Key\nProc Inst ID\nMessage")) {
scriptPass = true;
log.info("All checkboxes were successfully checked.");
testCasesCompleted++;
Expand Down

0 comments on commit 2c73ced

Please sign in to comment.