Skip to content

Commit

Permalink
Fix css selectors in Selenium test
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed Feb 20, 2023
1 parent 3545087 commit 6c1d6c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Kitodo/src/test/java/org/kitodo/selenium/MetadataST.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ public void hideStructureDataTest() throws Exception {
*/
@Test
public void removeMetadataLockTest() throws Exception {
User metadataUser = ServiceManager.getUserService().getByLogin("verylast");
Pages.getLoginPage().goTo().performLogin(metadataUser);
// Open process in metadata editor by default user to set metadata lock for this process and user
login("kowal");
Pages.getProcessesPage().goTo().editMetadata(MockDatabase.METADATA_LOCK_TEST_PROCESS_TITLE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ private void setEditMetadataLink(String processTitle) throws StaleElementReferen
.ignoreExceptions().until(() -> processesTable.isDisplayed());
int index = getRowIndex(processesTable, processTitle, 3);
await("Wait for 'edit metadata' link to become enabled").pollDelay(1, TimeUnit.SECONDS).atMost(5, TimeUnit.SECONDS)
.ignoreExceptions().until(() -> Browser.getDriver().findElementById(PROCESSES_TABLE + ":" + index + ":readXML")
.ignoreExceptions().until(() -> Browser.getDriver().findElementById(PROCESSES_TABLE + ":" + index + ":editMetadata")
.isEnabled());
editMetadataLink = Browser.getDriver().findElementById(PROCESSES_TABLE + ":" + index + ":readXML");
editMetadataLink = Browser.getDriver().findElementById(PROCESSES_TABLE + ":" + index + ":editMetadata");
}
*/

Expand Down

0 comments on commit 6c1d6c1

Please sign in to comment.