@@ -98,50 +98,3 @@ Feature: Combine triggers with 'and' operation and test view and actions
9898 And I should not see "Course BA"
9999 And I should not see "Course A"
100100 And I should not see "ArchCourse"
101-
102- @javascript
103- Scenario : Combine automatic triggers (backup and course deletion)
104- Given I log in as "admin"
105- And I am on workflowdrafts page
106- And I click on "Create new workflow" "link"
107- And I set the following fields to these values:
108- | Title | My Workflow |
109- | Displayed workflow title | Teachers view on workflow |
110- And I press "Save changes"
111-
112- And I select "Trigger courses by roles missing" from the "tool_lifecycle-choose-trigger" singleselect
113- And I set the following fields to these values:
114- | Instance name | Roles |
115- | Responsible Roles in courses | student |
116- And I press "Save changes"
117-
118- And I select "Categories trigger" from the "tool_lifecycle-choose-trigger" singleselect
119- And I set the following fields to these values:
120- | Instance name | Categories |
121- | Categories , for which the workflow should be triggered | cata , catc |
122- And I press "Save changes"
123-
124- And I select "Create backup step" from the "tool_lifecycle-choose-step" singleselect
125- And I set the field "Instance name" to "Create backup step"
126- And I press "Save changes"
127-
128- And I select "Delete course step" from the "tool_lifecycle-choose-step" singleselect
129- And I set the field "Instance name" to "Delete Course 2"
130- And I press "Save changes"
131-
132- And I am on workflowdrafts page
133- And I press "Activate"
134- And I run the scheduled task "tool_lifecycle\t ask\l ifecycle_task"
135- And I wait "15" seconds
136- And I run the scheduled task "tool_lifecycle\t ask\l ifecycle_task"
137- And I wait "15" seconds
138- And I run the scheduled task "tool_lifecycle\t ask\l ifecycle_task"
139- And I wait "15" seconds
140- And I log out
141-
142- And I log in as "teacher1"
143- When I am on lifecycle view
144- Then I should not see "Course A" in the "tool_lifecycle_remaining" "table"
145- And I should see "Course BA" in the "tool_lifecycle_remaining" "table"
146- And I should see "Course C" in the "tool_lifecycle_remaining" "table"
147- And I should see "ArchCourse" in the "tool_lifecycle_remaining" "table"
0 commit comments