Skip to content

Commit

Permalink
MDL-68888 lang: Use the fixed spelling in the Behat tests, too
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jun 5, 2020
1 parent 98c8821 commit 6918ca6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions admin/tool/licensemanager/tests/behat/license_manager.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@tool @tool_licensemanager
Feature: License manager
In order to manage licenses
Feature: Licence manager
In order to manage licences
As an admin
I need to be able to view and alter licence preferences in the license manager.
I need to be able to view and alter licence preferences in the licence manager.

Scenario: I should be able to see the default Moodle licences.
Given I log in as "admin"
Expand All @@ -17,19 +17,19 @@ Feature: License manager
And I should see "Creative Commons - No Commercial ShareAlike" in the "cc-nc-sa" "table_row"
And I should see "Creative Commons - ShareAlike" in the "cc-sa" "table_row"

Scenario: I should be able to enable and disable licenses
Scenario: I should be able to enable and disable licences
Given I log in as "admin"
And I navigate to "Licence > Licence settings" in site administration
When I set the field "Default site licence" to "Public domain"
And I press "Save changes"
And I navigate to "Licence > Licence manager" in site administration
Then "This is the site default license" "icon" should exist in the "public" "table_row"
And "Enable license" "icon" should not exist in the "public" "table_row"
And "This is the site default license" "icon" should not exist in the "cc" "table_row"
Then "This is the site default licence" "icon" should exist in the "public" "table_row"
And "Enable licence" "icon" should not exist in the "public" "table_row"
And "This is the site default licence" "icon" should not exist in the "cc" "table_row"
And I navigate to "Licence > Licence settings" in site administration
And I set the field "Default site licence" to "Creative Commons"
And I press "Save changes"
And I navigate to "Licence > Licence manager" in site administration
And "This is the site default license" "icon" should exist in the "cc" "table_row"
And "Enable license" "icon" should not exist in the "cc" "table_row"
And "This is the site default license" "icon" should not exist in the "public" "table_row"
And "This is the site default licence" "icon" should exist in the "cc" "table_row"
And "Enable licence" "icon" should not exist in the "cc" "table_row"
And "This is the site default licence" "icon" should not exist in the "public" "table_row"
30 changes: 15 additions & 15 deletions files/tests/behat/license_help_modal.feature
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
@core @core_files
Feature: View license links
In order to get select the applicable license when uploading a file
Feature: View licence links
In order to get select the applicable licence when uploading a file
As a user
I need to be able to navigate to a page containing license terms from the file manager
I need to be able to navigate to a page containing licence terms from the file manager

@javascript
Scenario: Uploading a file displays license list modal
Scenario: Uploading a file displays licence list modal
Given I log in as "admin"
And I follow "Manage private files..."
And I wait until the page is ready
And I follow "Add..."
And I follow "Upload a file"
And I click on "Help with Choose license" "icon" in the "File picker" "dialogue"
Then I should see "Follow these links for further information on the available license options:"
And I click on "Help with Choose licence" "icon" in the "File picker" "dialogue"
Then I should see "Follow these links for further information on the available licence options:"

@javascript @_file_upload
Scenario: Altering a file should display license list modal
Scenario: Altering a file should display licence list modal
Given I log in as "admin"
And I follow "Manage private files..."
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
And I press "Save changes"
And I follow "Manage private files..."
And I click on "empty.txt" "link"
And I click on "Help with Choose license" "icon"
Then I should see "Follow these links for further information on the available license options:"
And I click on "Help with Choose licence" "icon"
Then I should see "Follow these links for further information on the available licence options:"

@javascript @_file_upload
Scenario: Recent files should display license list modal
Scenario: Recent files should display licence list modal
Given I log in as "admin"
And I follow "Manage private files..."
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
Expand All @@ -35,11 +35,11 @@ Feature: View license links
And I follow "Add..."
And I click on "Recent files" "link" in the "File picker" "dialogue"
And I click on "empty.txt" "link" in the "File picker" "dialogue"
And I click on "Help with Choose license" "icon" in the ".fp-setlicense" "css_element"
Then I should see "Follow these links for further information on the available license options:"
And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
Then I should see "Follow these links for further information on the available licence options:"

@javascript @_file_upload
Scenario: Private files should display license list modal
Scenario: Private files should display licence list modal
Given I log in as "admin"
And I follow "Manage private files..."
And I upload "lib/tests/fixtures/empty.txt" file to "Files" filemanager
Expand All @@ -48,5 +48,5 @@ Feature: View license links
And I follow "Add..."
And I click on "Private files" "link" in the "File picker" "dialogue"
And I click on "empty.txt" "link" in the "File picker" "dialogue"
And I click on "Help with Choose license" "icon" in the ".fp-setlicense" "css_element"
Then I should see "Follow these links for further information on the available license options:"
And I click on "Help with Choose licence" "icon" in the ".fp-setlicense" "css_element"
Then I should see "Follow these links for further information on the available licence options:"

0 comments on commit 6918ca6

Please sign in to comment.