Skip to content

Commit

Permalink
fix: testAcceptance: aligner test expectation unstable (#1202)
Browse files Browse the repository at this point in the history
- put timeout for waiting file chooser raising

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr authored Nov 29, 2024
1 parent 5b53f54 commit 63f59dc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ public void testAligner() throws Exception {
picker.comboBox("targetLanguagePicker").requireSelection("fr - French");
//
picker.button("sourceChooseFileButton").click();
picker.fileChooser("aligner_choose_source").requireVisible();
picker.fileChooser("aligner_choose_source").requireEnabled(Timeout.timeout(1000));
picker.fileChooser("aligner_choose_source").selectFile(new File(tmpDir, SOURCE_PATH));
picker.fileChooser("aligner_choose_source").approve();
robot().waitForIdle();
//
picker.button("targetChooseFileButton").click();
picker.fileChooser("aligner_choose_target").requireVisible();
picker.fileChooser("aligner_choose_target").requireEnabled(Timeout.timeout(1000));
picker.fileChooser("aligner_choose_target").selectFile(new File(tmpDir, TARGET_PATH));
picker.fileChooser("aligner_choose_target").approve();
robot().waitForIdle();
Expand Down

0 comments on commit 63f59dc

Please sign in to comment.