forked from learnweb/moodle-tool_lifecycle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix upload workflow * inserting feedback * finally
- Loading branch information
1 parent
160bc68
commit 8e08f2d
Showing
6 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@tool @tool_lifecycle @_file_upload @upload_workflow | ||
Feature: Upload a workflow definition | ||
|
||
@javascript | ||
Scenario: Upload a new workflow | ||
Given I log in as "admin" | ||
And I navigate to "Plugins > Admin tools > Life Cycle > Workflow drafts" in site administration | ||
And I click on "Upload workflow" "link" | ||
And I upload "admin/tool/lifecycle/tests/fixtures/simpleworkflow.xml" file to "File" filemanager | ||
And I press "Upload" | ||
Then I should see "A Workflow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<workflow id="3" title="A Workflow" manual="" displaytitle="Delete old courses" rollbackdelay="15811200" finishdelay="15811200" delayforallworkflows="0"> | ||
<step id="1" instancename="Create Backup" workflowid="3" subpluginname="createbackup" sortindex="1"> | ||
<setting name="maximumbackupspercron" value="10"/> | ||
</step> | ||
<step id="2" instancename="Delete Course" workflowid="3" subpluginname="deletecourse" sortindex="2"> | ||
<setting name="maximumdeletionspercron" value="10"/> | ||
</step> | ||
<trigger id="3" instancename="Date to trigger" workflowid="3" subpluginname="specificdate" sortindex="1"> | ||
<setting name="dates" value="01.08"/> | ||
<setting name="timelastrun" value="0"/> | ||
</trigger> | ||
<trigger id="4" instancename="Age of course" workflowid="3" subpluginname="startdatedelay" sortindex="2"> | ||
<setting name="delay" value="31536000"/> | ||
</trigger> | ||
</workflow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters