Skip to content

Commit

Permalink
Workflow needs unique name for reliable order in "ORDER BY title ASC"
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-ronge committed Aug 29, 2024
1 parent 050daa4 commit 1aedace
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kitodo/src/test/java/org/kitodo/MockDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ public static void insertWorkflows() throws DAOException, DataException {
template.setWorkflow(firstWorkflow);
ServiceManager.getTemplateService().save(template);

Workflow secondWorkflow = new Workflow(TEST);
Workflow secondWorkflow = new Workflow("test_second");
secondWorkflow.setStatus(WorkflowStatus.DRAFT);
secondWorkflow.setClient(ServiceManager.getClientService().getById(1));
ServiceManager.getWorkflowService().save(secondWorkflow);
Expand Down
2 changes: 1 addition & 1 deletion Kitodo/src/test/java/org/kitodo/selenium/EditingST.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void editWorkflowTest() throws Exception {
assertEquals("Status is not correct", "Entwurf", status);
WorkflowEditPage workflowEditPage = projectsPage.editWorkflow();
workflowEditPage.changeWorkflowStatusToActive();
assertEquals("Header for edit workflow is incorrect", "Workflow bearbeiten (test)",
assertEquals("Header for edit workflow is incorrect", "Workflow bearbeiten (test_second)",
Pages.getWorkflowEditPage().getHeaderText());
projectsPage = workflowEditPage.save();
status = projectsPage.goToWorkflowTab().getWorkflowStatusForWorkflow();
Expand Down

0 comments on commit 1aedace

Please sign in to comment.