Skip to content

Commit

Permalink
JCSP-515: crete dashboard fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nataliia Shavshyna committed Jun 26, 2020
1 parent f88b74f commit 7aa3a40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ import jces1209.vu.page.dashboard.DashboardPage
import jces1209.vu.wait
import org.openqa.selenium.By
import org.openqa.selenium.support.ui.ExpectedConditions
import org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated
import java.time.Duration

class CloudDashboardPage(
jira: WebJira
) : DashboardPage(
driver = jira.driver) {
override fun createDashboard() {
driver.wait(
ExpectedConditions.visibilityOfElementLocated(By.id("shareable-entity-dialog.input-name"))
)
driver.findElement(
By.xpath("//*[@data-test-id='directory.dashboards-v2.create-button']")).click()
driver.wait(
ExpectedConditions.or(
visibilityOfElementLocated(By.id("shareable-entity-dialog.input-name")),
visibilityOfElementLocated(By.className("css-vfoyut"))
)
)
driver.findElement(
By.id("shareable-entity-dialog.input-name"))
.sendKeys("TestDasboard" + System.currentTimeMillis())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DcDashboardPage(
driver
.wait(
ExpectedConditions.elementToBeClickable(By.id("create_dashboard"))
)
).click()
driver.findElement(
By.id("edit-entity-dashboard-name"))
.sendKeys("TestDasboard" + System.currentTimeMillis())
Expand Down

0 comments on commit 7aa3a40

Please sign in to comment.