Skip to content

Commit

Permalink
Add extra await to avoid state reference exception when closing metad…
Browse files Browse the repository at this point in the history
…ata editor.
  • Loading branch information
thomaslow committed Oct 1, 2024
1 parent 27eee92 commit b0cc9d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Kitodo/src/test/java/org/kitodo/selenium/MetadataST.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,10 @@ public void saveLayoutTest() throws Exception {
// confirm success message
Browser.getDriver().findElement(By.id("dataEditorSavingResultForm:reload")).click();

// re-open metadata editor
// close metadata editor, wait until closed, and re-open
Pages.getMetadataEditorPage().closeEditor();
await().ignoreExceptions().pollDelay(100, TimeUnit.MILLISECONDS).atMost(3, TimeUnit.SECONDS)
.until(() -> Pages.getProcessesPage().isAt());
Pages.getProcessesPage().goTo().editMetadata(MockDatabase.MEDIA_RENAMING_TEST_PROCESS_TITLE);

// verify that layout was saved
Expand Down

0 comments on commit b0cc9d4

Please sign in to comment.