Skip to content

Commit

Permalink
Fix Behat for Moodle 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Nov 21, 2018
1 parent fd1945d commit 8289bf4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,7 @@ sudo: required

addons:
firefox: "47.0.1"
postgresql: "9.3"
postgresql: "9.6"
apt:
packages:
- oracle-java8-installer
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/clone_workflow.feature
Expand Up @@ -7,7 +7,7 @@ Feature: Workflow block - clone a workflow
@javascript
Scenario: Duplicate a workflow
When I log in as "admin"
And I navigate to "Workflows" node in "Site administration > Plugins > Blocks"
And I navigate to "Plugins > Blocks > Workflows" in site administration
And I follow "Import workflow"
And I upload "blocks/workflow/tests/fixtures/testworkflow.workflow.xml" file to "File" filemanager
And I press "Import workflow"
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/create_email_template.feature
Expand Up @@ -7,7 +7,7 @@ Feature: Workflow block - email templates
@javascript
Scenario: Create edit then delete an email template
When I log in as "admin"
And I navigate to "Workflows" node in "Site administration > Plugins > Blocks"
And I navigate to "Plugins > Blocks > Workflows" in site administration
Then I should see "Manage email templates"

When I follow "Add email template"
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/create_workflow.feature
Expand Up @@ -6,7 +6,7 @@ Feature: Workflow block - create and edit workflows

Background:
Given I log in as "admin"
And I navigate to "Workflows" node in "Site administration > Plugins > Blocks"
And I navigate to "Plugins > Blocks > Workflows" in site administration
And I follow "Add email template"
And I set the following fields to these values:
| Shortname | taskemail |
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/import_export_workflow.feature
Expand Up @@ -7,7 +7,7 @@ Feature: Workflow block - import and export workflows
@javascript @_file_upload
Scenario: Import and export workflows
When I log in as "admin"
And I navigate to "Workflows" node in "Site administration > Plugins > Blocks"
And I navigate to "Plugins > Blocks > Workflows" in site administration
And I follow "Import workflow"
And I upload "blocks/workflow/tests/fixtures/testworkflow.workflow.xml" file to "File" filemanager
And I press "Import workflow"
Expand Down
6 changes: 3 additions & 3 deletions tests/behat/use_workflow_atto.feature
Expand Up @@ -30,7 +30,7 @@ Feature: Workflow block - follow a workflow
@javascript
Scenario: Add a workflow to a course and step through it.
When I log in as "admin"
And I navigate to "Workflows" node in "Site administration > Plugins > Blocks"
And I navigate to "Plugins > Blocks > Workflows" in site administration
And I follow "Import workflow"
And I upload "blocks/workflow/tests/fixtures/testworkflow.workflow.xml" file to "File" filemanager
And I press "Import workflow"
Expand All @@ -54,7 +54,7 @@ Feature: Workflow block - follow a workflow
And I should see "Tasks for completion"

# Check that the finish step script did the right thing.
When I navigate to "Edit settings" node in "Course administration"
When I navigate to "Edit settings" in current page administration
Then the field "Course visibility" matches value "Hide"
And I press "Cancel"

Expand Down Expand Up @@ -123,7 +123,7 @@ Feature: Workflow block - follow a workflow
When I log out
And I log in as "manager1"
And I am on "Course 1" course homepage
And I navigate to "Edit settings" node in "Course administration"
And I navigate to "Edit settings" in current page administration
Then the field "Course visibility" matches value "Show"

And I am on "Course 1" course homepage
Expand Down
8 changes: 4 additions & 4 deletions tests/behat/use_workflow_tinymce.feature
Expand Up @@ -30,11 +30,11 @@ Feature: Workflow block - follow a workflow using TinyMCE
@javascript
Scenario: Add a workflow to a course and step through it using TinyMCE
When I log in as "admin"
And I navigate to "Workflows" node in "Site administration > Plugins > Blocks"
And I navigate to "Plugins > Blocks > Workflows" in site administration
And I follow "Import workflow"
And I upload "blocks/workflow/tests/fixtures/testworkflow.workflow.xml" file to "File" filemanager
And I press "Import workflow"
And I navigate to "Manage editors" node in "Site administration > Plugins > Text editors"
And I navigate to "Plugins > Text editors > Manage editors" in site administration
And I click on "Disable" "link" in the "Atto HTML editor" "table_row"
And I log out

Expand All @@ -56,7 +56,7 @@ Feature: Workflow block - follow a workflow using TinyMCE
And I should see "Tasks for completion"

# Check that the finish step script did the right thing.
When I navigate to "Edit settings" node in "Course administration"
When I navigate to "Edit settings" in current page administration
Then the field "Course visibility" matches value "Hide"
And I press "Cancel"

Expand Down Expand Up @@ -119,7 +119,7 @@ Feature: Workflow block - follow a workflow using TinyMCE
And "Workflow overview" "button" in the "Workflow" "block" should be visible

# Check that the finish step script did the right thing.
When I navigate to "Edit settings" node in "Course administration"
When I navigate to "Edit settings" in current page administration
Then the field "Course visibility" matches value "Show"

When I log out
Expand Down

0 comments on commit 8289bf4

Please sign in to comment.