Skip to content

Commit

Permalink
Adapt to some change
Browse files Browse the repository at this point in the history
  • Loading branch information
HiromuHota committed Apr 4, 2021
1 parent bb8fc78 commit 2b159a8
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,12 @@ public void testAppLoading() {

@Test
public void testContextDialog() {
By xpath = By.xpath(
"//div[starts-with(text(), 'Search') and not(contains(text(), 'string'))]"
);
By xpath = By.xpath("//div[text() = 'Select the item to create']");
assertEquals(0, driver.findElements(xpath).size());

clickElement("//div[text() = 'File']");
clickElement("//div[text() = 'New']");
// TODO: driver.findElements(xpath).size() is now 2 for some reason, but should be 1.
assertTrue( 1 <= driver.findElements(xpath).size());
assertEquals(1, driver.findElements(xpath).size());
}

@Test
Expand All @@ -90,7 +87,7 @@ private void createNewPipeline() {
// Create a new Pipeline
clickElement("//div[text() = 'File']");
clickElement("//div[text() = 'New']");
element = driver.findElement(By.xpath("//div[starts-with(text(), 'Search') and not(contains(text(), 'string'))]"));
element = driver.findElement(By.xpath("//div[starts-with(text(), 'Search:')]"));
element = element.findElement(By.xpath("./../..//input"));
element.sendKeys(Keys.UP);
element.sendKeys(Keys.LEFT);
Expand Down

0 comments on commit 2b159a8

Please sign in to comment.