Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-sita committed Jul 18, 2024
1 parent 4994e12 commit 76df583
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ public void shouldSaveNewTagTranslation(FxRobot robot) {
// visit tag translation
Node node = TabActions.getMainTab("Tag translation");

assertThat(TagTranslationActions.unsavedChangesLabel().getText()).isEqualTo("Changing repo will lose unsaved changes");
assertThat(TagTranslationActions.validationFailedLabel().getText()).isNullOrEmpty();

withAction(() -> {
robot.clickOn(node);
})
.expect(toBeTrueAfterAction(() -> unstableSceneReporter.isStable()))
.test();

assertThat(TagTranslationActions.unsavedChangesLabel().getText()).isEqualTo("Changing repo will lose unsaved changes");
assertThat(TagTranslationActions.validationFailedLabel().getText()).isNullOrEmpty();

robot.clickOn(RepositoryActions.repositoryChoiceBox());
robot.type(KeyCode.DOWN);
robot.type(KeyCode.ENTER);
Expand Down

0 comments on commit 76df583

Please sign in to comment.