Skip to content

Commit

Permalink
Cleaned up the Main Window interception in RupsUndoRedoTest.java
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Boyd <[email protected]>
  • Loading branch information
Minothor committed Jun 8, 2023
1 parent 9c5a81a commit 9e09015
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/com/itextpdf/rups/view/RupsUndoRedoTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ public void before() {
}
MAIN_WINDOW = getMainWindow();

// TODO: Change this to match the Maven defined Snapshot name.
waitUntil(MAIN_WINDOW.titleEquals(String.format(Language.TITLE.getString(), ITextCoreProductData.getInstance().getVersion())), 8000);
// TODO: Change this to test the panel name.
waitUntil(MAIN_WINDOW.getPanel(INPUT_FILE.substring(1 + INPUT_FILE.lastIndexOf('/'))).isEnabled(), 8000);
String windowTitle = String.format(Language.TITLE.getString(), ITextCoreProductData.getInstance().getVersion());
waitUntil(MAIN_WINDOW.titleEquals(windowTitle), 8000);
String documentPanelName = INPUT_FILE.substring(1 + INPUT_FILE.lastIndexOf('/'));
waitUntil(MAIN_WINDOW.getPanel(documentPanelName).isEnabled(), 8000);
pdfTree = MAIN_WINDOW.getTree("pdfTree");
objectPanel = MAIN_WINDOW.getPanel("PdfObjectPanel");
}
Expand Down

0 comments on commit 9e09015

Please sign in to comment.