Skip to content

Commit

Permalink
Fix test and revert test ruleset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed Jul 11, 2024
1 parent 8c65d8c commit b4a4b47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions Kitodo/src/test/java/org/kitodo/selenium/ImportingST.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public void checkHierarchyImport() throws Exception {
importPage.decreaseImportDepth();
importPage.getSearchButton().click();
assertTrue("Hierarchy panel should be visible", importPage.isHierarchyPanelVisible());
importPage.addPpnAndTitle();
String parentTitle = importPage.getProcessTitle();
Pages.getProcessFromTemplatePage().save();
processesPage.applyFilter(parentTitle);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ public String createProcess() throws Exception {
return generatedTitle;
}

/**
* Add metadata values for PPN and title.
*/
public void addPpnAndTitle() {
titleSortInput.sendKeys("TestProcess");
ppnDigitalInput.sendKeys("12345");
}

/**
* Creates a process as child.
*
Expand Down
4 changes: 2 additions & 2 deletions Kitodo/src/test/resources/rulesets/ruleset_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@
<restriction division="MultiVolumeWork" unspecified="forbidden">
<permit division="Volume"/>
<permit key="TitleDocMain" minOccurs="1"/>
<permit key="TitleDocMainShort"/>
<permit key="TitleDocMainShort" minOccurs="1"/>
<permit key="CatalogIDDigital" minOccurs="1"/>
<permit key="CatalogIDSource"/>
<permit key="CatalogIDSource" minOccurs="1"/>
<permit key="TSL_ATS"/>
<permit key="ContributorPerson"/>
</restriction>
Expand Down

0 comments on commit b4a4b47

Please sign in to comment.