forked from pentaho/pentaho-kettle
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file-open-save-new-core to make it fully-functional
- Loading branch information
Hiromu Hota
committed
Feb 6, 2020
1 parent
e17afe0
commit d90d0eb
Showing
5 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,16 @@ public void testOpenSaveMenus() { | |
assertFalse( isMenuItemDisabled( "//div[text() = 'Save as (VFS)...']" ) ); | ||
} | ||
|
||
@Test | ||
public void testOpenSaveNewDialog() { | ||
clickElement( "//div[text() = 'File']" ); | ||
assertFalse( isMenuItemDisabled( "//div[text() = 'Open URL...']" ) ); | ||
clickElement( "//div[text() = 'Open URL...']" ); // Open the new dialog | ||
driver.switchTo().frame( driver.findElement( By.xpath(".//iframe[starts-with(@src, '/spoon/osgi/@pentaho/[email protected]/index.html')]") ) ); | ||
wait.until( ExpectedConditions.presenceOfElementLocated( By.xpath( "//div[contains(text(),'Local')]" ) ) ); | ||
assertEquals( 1, driver.findElements( By.xpath( "//div[contains(text(),'Local')]" ) ).size() ); | ||
} | ||
|
||
@Test | ||
public void testDatabaseConnectionDialog() throws Exception { | ||
// Create a new transformation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters