Skip to content

Commit

Permalink
fix flaky e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
SbloodyS committed Jul 1, 2024
1 parent 12ffcec commit b624a62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.ExpectedConditions;

@Getter
Expand Down Expand Up @@ -71,7 +70,8 @@ public DataSourcePage createDataSource(String dataSourceType, String dataSourceN

WebDriverWaitFactory.createWebDriverWait(driver).until(ExpectedConditions.visibilityOf(dataSourceModal));
WebElement dataSourceTypeButton = By.className(dataSourceType.toUpperCase() + "-box").findElement(driver);
WebDriverWaitFactory.createWebDriverWait(driver).until(ExpectedConditions.elementToBeClickable(dataSourceTypeButton));
WebDriverWaitFactory.createWebDriverWait(driver)
.until(ExpectedConditions.elementToBeClickable(dataSourceTypeButton));
dataSourceTypeButton.click();

WebDriverWaitFactory.createWebDriverWait(driver).until(ExpectedConditions.textToBePresentInElement(
Expand Down

0 comments on commit b624a62

Please sign in to comment.