From 11d6813d01ff4425cb6e2b7e3d2a67cfde9c62d2 Mon Sep 17 00:00:00 2001 From: Tobias Reischmann <tobias.reischmann@wi.uni-muenster.de> Date: Tue, 3 Sep 2019 14:14:08 +0200 Subject: [PATCH] Fix admin site path for behat tests --- tests/behat/activate_workflow.feature | 2 +- tests/behat/add_workflow.feature | 8 ++++---- tests/behat/disable_workflow.feature | 8 ++++---- tests/behat/interaction.feature | 2 +- tests/behat/interaction_forms.feature | 2 +- tests/behat/manual_trigger.feature | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/behat/activate_workflow.feature b/tests/behat/activate_workflow.feature index 0c24020..a0cd3c6 100644 --- a/tests/behat/activate_workflow.feature +++ b/tests/behat/activate_workflow.feature @@ -4,7 +4,7 @@ Feature: Add a workflow definition activate it Scenario: Add a new workflow definition with steps and rearrange Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | diff --git a/tests/behat/add_workflow.feature b/tests/behat/add_workflow.feature index 1c671bb..6673861 100644 --- a/tests/behat/add_workflow.feature +++ b/tests/behat/add_workflow.feature @@ -5,7 +5,7 @@ Feature: Add a workflow definition Scenario: Add a new workflow definition without steps For displaying the additional trigger settings the "Save changes" button is used. Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | @@ -33,7 +33,7 @@ Feature: Add a workflow definition Scenario: Add a new workflow definition with steps For displaying the additional trigger settings the "reload" button is used. Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | @@ -56,7 +56,7 @@ Feature: Add a workflow definition Scenario: Add a new workflow definition and alter trigger Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | @@ -89,7 +89,7 @@ Feature: Add a workflow definition Scenario: Add a new workflow definition with steps and rearange Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | diff --git a/tests/behat/disable_workflow.feature b/tests/behat/disable_workflow.feature index 77fc943..2ee7b3c 100644 --- a/tests/behat/disable_workflow.feature +++ b/tests/behat/disable_workflow.feature @@ -7,7 +7,7 @@ Feature: Disable a workflow | fullname | shortname | category | startdate | | Course 1 | C1 | 0 | ##4 days ago## | And I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | @@ -39,7 +39,7 @@ Feature: Disable a workflow Scenario: Disable an workflow, keep processes running, then abort all processes and delete workflow Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration Then I should see the row "My Workflow" in the "tool_lifecycle_active_automatic_workflows" table And I should see the tool "Disable Workflow (processes keep running)" in the "My Workflow" row of the "tool_lifecycle_active_automatic_workflows" table When I click on the tool "Disable Workflow (processes keep running)" in the "My Workflow" row of the "tool_lifecycle_active_automatic_workflows" table @@ -56,7 +56,7 @@ Feature: Disable a workflow Scenario: Disable an workflow and kill processes (abort), then delete workflow Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration Then I should see the row "My Workflow" in the "tool_lifecycle_active_automatic_workflows" table And I should see the tool "Disable Workflow (abort processes, maybe unsafe!)" in the "My Workflow" row of the "tool_lifecycle_active_automatic_workflows" table When I click on the tool "Disable Workflow (abort processes, maybe unsafe!)" in the "My Workflow" row of the "tool_lifecycle_active_automatic_workflows" table @@ -68,7 +68,7 @@ Feature: Disable a workflow Scenario: Disable an workflow then create (duplicate) a new one with the same configuration Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration Then I should see the row "My Workflow" in the "tool_lifecycle_active_automatic_workflows" table When I click on the tool "Disable Workflow (processes keep running)" in the "My Workflow" row of the "tool_lifecycle_active_automatic_workflows" table When I click on the tool "Duplicate Workflow" in the "My Workflow" row of the "tool_lifecycle_deactivated_workflows" table diff --git a/tests/behat/interaction.feature b/tests/behat/interaction.feature index 293792d..6c69741 100644 --- a/tests/behat/interaction.feature +++ b/tests/behat/interaction.feature @@ -16,7 +16,7 @@ Feature: Add a workflow with an email step and test the interaction as a teacher | teacher1 | C2 | editingteacher | | teacher1 | C3 | editingteacher | And I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | diff --git a/tests/behat/interaction_forms.feature b/tests/behat/interaction_forms.feature index 005c83e..131dadf 100644 --- a/tests/behat/interaction_forms.feature +++ b/tests/behat/interaction_forms.feature @@ -12,7 +12,7 @@ Feature: Add a workflow with a manual trigger and a duplicate step and test the | user | course | role | | teacher1 | C1 | editingteacher | And I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | diff --git a/tests/behat/manual_trigger.feature b/tests/behat/manual_trigger.feature index ebae396..da3da87 100644 --- a/tests/behat/manual_trigger.feature +++ b/tests/behat/manual_trigger.feature @@ -24,7 +24,7 @@ Feature: Add a manual trigger and test view and actions as a teacher And I set the following system permissions of "Non-editing teacher" role: | capability | permission | | tool/lifecycle:managecourses | Allow | - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | @@ -52,7 +52,7 @@ Feature: Add a manual trigger and test view and actions as a teacher @javascript Scenario: Manually trigger backup and course deletion Given I log in as "admin" - And I navigate to "Life Cycle > Workflow Settings" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Workflow Settings" in site administration And I press "Add Workflow" And I set the following fields to these values: | Title | My Workflow | @@ -88,6 +88,6 @@ Feature: Add a manual trigger and test view and actions as a teacher And I should see "Course 2" When I log out And I log in as "admin" - And I navigate to "Life Cycle > Course Backups" in site administration + And I navigate to "Plugins > Admin tools > Life Cycle > Course Backups" in site administration Then I should see "Course 1" And I should not see "Course 2" \ No newline at end of file -- GitLab