Skip to content

Commit

Permalink
MDL-73812 lang: Replace modified strings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdef committed Feb 18, 2022
1 parent 7ff6b2d commit efdd77a
Show file tree
Hide file tree
Showing 23 changed files with 93 additions and 93 deletions.
4 changes: 2 additions & 2 deletions admin/tool/admin_presets/tests/behat/delete.feature
Expand Up @@ -23,7 +23,7 @@ Feature: Admin preset deletion
Given I should see "Custom preset"
And I open the action menu in "Custom preset" "table_row"
When I choose "Delete" in the open action menu
And I should see "Are you sure you want to delete \"Custom preset\" site admin preset?"
And I should see "Are you sure you want to delete the site admin preset Custom preset?"
And I should not see "This preset has been previously applied"
And I click on "Cancel" "button"
And I should see "Presets allow you to easily switch between different site admin configurations."
Expand All @@ -42,7 +42,7 @@ Feature: Admin preset deletion
And I navigate to "Site admin presets" in site administration
When I open the action menu in "Custom preset" "table_row"
And I choose "Delete" in the open action menu
And I should see "Are you sure you want to delete \"Custom preset\" site admin preset?"
And I should see "Are you sure you want to delete the site admin preset Custom preset?"
Then I should see "This preset has been previously applied"
And I click on "Delete" "button"
And I should see "Presets allow you to easily switch between different site admin configurations"
Expand Down
26 changes: 13 additions & 13 deletions admin/tool/usertours/tests/behat/create_tour.feature
Expand Up @@ -17,14 +17,14 @@ Feature: Add a new user tour
| Tour is enabled | 1 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Enter manually |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Manual |
And I add steps to the "First tour" tour:
| targettype | targetvalue_block | Title | id_content | Content type |
| Block | Timeline | Timeline | This is the Timeline. All of your upcoming activities can be found here | Enter manually |
| Block | Calendar | Calendar | This is the Calendar. All of your assignments and due dates can be found here | Enter manually |
| Block | Timeline | Timeline | This is the Timeline. All of your upcoming activities can be found here | Manual |
| Block | Calendar | Calendar | This is the Calendar. All of your assignments and due dates can be found here | Manual |
And I add steps to the "First tour" tour:
| targettype | targetvalue_selector | Title | id_content | Content type |
| Selector | .usermenu | User menu | This is your personal user menu. You'll find your personal preferences and your user profile here. | Enter manually |
| Selector | .usermenu | User menu | This is your personal user menu. You'll find your personal preferences and your user profile here. | Manual |
When I am on homepage
Then I should see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
And I click on "Next" "button" in the "[data-role='flexitour-step']" "css_element"
Expand Down Expand Up @@ -54,7 +54,7 @@ Feature: Add a new user tour
| Tour is enabled | 0 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Enter manually |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Manual |
When I am on homepage
Then I should not see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"

Expand All @@ -71,7 +71,7 @@ Feature: Add a new user tour
| Tour is enabled | 0 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Enter manually |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Manual |
And I open the User tour settings page
When I click on "Enable" "link" in the "My first tour" "table_row"
And I am on homepage
Expand All @@ -92,11 +92,11 @@ Feature: Add a new user tour
| End tour button's label | Sample end label |
And I add steps to the "Steps tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | First step of the Tour | Enter manually |
| Display in middle of page | Welcome | First step of the Tour | Manual |
And I add steps to the "Steps tour" tour:
| targettype | targetvalue_block | Title | id_content | Content type |
| Block | Timeline | Timeline | Second step of the Tour | Enter manually |
| Block | Calendar | Calendar | Third step of the Tour | Enter manually |
| Block | Timeline | Timeline | Second step of the Tour | Manual |
| Block | Calendar | Calendar | Third step of the Tour | Manual |
When I am on homepage
Then I should see "First step of the Tour"
And I should see "Next (1/3)"
Expand Down Expand Up @@ -126,11 +126,11 @@ Feature: Add a new user tour
| Display step numbers | 0 |
And I add steps to the "Steps tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | First step of the Tour | Enter manually |
| Display in middle of page | Welcome | First step of the Tour | Manual |
And I add steps to the "Steps tour" tour:
| targettype | targetvalue_block | Title | id_content | Content type |
| Block | Timeline | Timeline | Second step of the Tour | Enter manually |
| Block | Calendar | Calendar | Third step of the Tour | Enter manually |
| Block | Timeline | Timeline | Second step of the Tour | Manual |
| Block | Calendar | Calendar | Third step of the Tour | Manual |
When I am on homepage
Then I should see "First step of the Tour"
And I should see "Next"
Expand All @@ -154,7 +154,7 @@ Feature: Add a new user tour
| Display step numbers | 1 |
And I add steps to the "Steps tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | This is a single step tour | Enter manually |
| Display in middle of page | Welcome | This is a single step tour | Manual |
When I am on homepage
Then I should see "This is a single step tour"
And I should not see "Next (1/1)"
2 changes: 1 addition & 1 deletion admin/tool/usertours/tests/behat/duplicate_tour.feature
Expand Up @@ -16,7 +16,7 @@ Feature: Duplicate a user tour
| Tour is enabled | 0 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Enter manually |
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful | Manual |
And I open the User tour settings page
And I should see "1" occurrences of "First tour" in the "admintable" "table"
And I click on "Duplicate" "link" in the "My first tour" "table_row"
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/usertours/tests/behat/reset_tour.feature
Expand Up @@ -14,7 +14,7 @@ Feature: Reset a tour
| Show with backdrop | 1 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome tour. | Enter manually |
| Display in middle of page | Welcome | Welcome tour. | Manual |

@javascript
Scenario: Reset the tour with mobile view
Expand Down
8 changes: 4 additions & 4 deletions admin/tool/usertours/tests/behat/tour_accessibility.feature
Expand Up @@ -10,14 +10,14 @@ Feature: Apply accessibility to a tour
| Show with backdrop | 1 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome tour. | Enter manually |
| Display in middle of page | Welcome | Welcome tour. | Manual |
And I add steps to the tour:
| targettype | targetvalue_selector | Title | id_content | Content type |
| Selector | .usermenu | User menu | Next page | Enter manually |
| Selector | .navbar-brand | Page 2 | Next page | Enter manually |
| Selector | .usermenu | User menu | Next page | Manual |
| Selector | .navbar-brand | Page 2 | Next page | Manual |
And I add steps to the tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Page 3 | Final page. | Enter manually |
| Display in middle of page | Page 3 | Final page. | Manual |

@javascript
Scenario: Check tabbing working correctly.
Expand Down
26 changes: 13 additions & 13 deletions admin/tool/usertours/tests/behat/tour_content_type.feature
Expand Up @@ -23,48 +23,48 @@ Feature: Apply content type to a tour
And I click on "View" "link" in the "My first tour" "table_row"
When I click on "New step" "link"
Then "Content type" "select" should exist
And the "Content type" select box should contain "Read from language pack"
And the "Content type" select box should contain "Enter manually"
And I select "Read from language pack" from the "Content type" singleselect
And I should see " Moodle language identifier"
And the "Content type" select box should contain "Language string ID"
And the "Content type" select box should contain "Manual"
And I select "Language string ID" from the "Content type" singleselect
And I should see " Language string ID"
And "#fgroup_id_contenthtmlgrp" "css_element" should not be visible
And I select "Enter manually" from the "Content type" singleselect
And I select "Manual" from the "Content type" singleselect
And "#fgroup_id_contenthtmlgrp" "css_element" should be visible
And I should not see "Moodle language identifier"
And I should not see "Language string ID" in the "#fitem_id_contentlangstring" "css_element"

@javascript
Scenario: Create a new step with Moodle Language content type
Given I open the User tour settings page
And I click on "View" "link" in the "My first tour" "table_row"
And I click on "New step" "link"
And I set the field "Title" to "tour_activityinfo_course_teacher_title,tool_usertours"
And I select "Read from language pack" from the "Content type" singleselect
And I set the field "Moodle language identifier" to "tour_activityinfo_course_teacher_content_abc,tool_usertours"
And I select "Language string ID" from the "Content type" singleselect
And I set the field "Language string ID" to "tour_activityinfo_course_teacher_content_abc,tool_usertours"
When I press "Save changes"
Then I should see "Invalid language identifier"
And I set the field "Moodle language identifier" to "tour_activityinfo_course_teacher_content,tool_usertours"
Then I should see "Invalid language string ID"
And I set the field "Language string ID" to "tour_activityinfo_course_teacher_content,tool_usertours"
And I press "Save changes"
And I should see "New: Activity information"
And I should see "New course settings 'Show completion conditions' and 'Show activity dates' enable you to choose whether activity completion conditions (if set) and/or dates are displayed for students on the course page."
And I click on "Edit" "link" in the "New: Activity information" "table_row"
And I should see "Editing \"New: Activity information\""
And the field "Title" matches value "tour_activityinfo_course_teacher_title,tool_usertours"
And the field "Moodle language identifier" matches value "tour_activityinfo_course_teacher_content,tool_usertours"
And the field "Language string ID" matches value "tour_activityinfo_course_teacher_content,tool_usertours"

@javascript
Scenario: Create a new step with manual content type
Given I open the User tour settings page
And I click on "View" "link" in the "My first tour" "table_row"
And I click on "New step" "link"
And I set the field "Title" to "tour_activityinfo_course_teacher_title,tool_usertours"
And I select "Enter manually" from the "Content type" singleselect
And I select "Manual" from the "Content type" singleselect
And I set the field "id_content" to "<b>Test content</b>"
And I press "Save changes"
And I should see "New: Activity information"
And I should see "Test content"
And I click on "Edit" "link" in the "New: Activity information" "table_row"
And I should see "Editing \"New: Activity information\""
And I should not see "Moodle language identifier"
And I should not see "Language string ID" in the "#fitem_id_contentlangstring" "css_element"
And the field "Title" matches value "tour_activityinfo_course_teacher_title,tool_usertours"
And the field "id_content" matches value "<b>Test content</b>"

Expand Down
18 changes: 9 additions & 9 deletions admin/tool/usertours/tests/behat/tour_filter.feature
Expand Up @@ -28,7 +28,7 @@ Feature: Apply tour filters to a tour
| Role | Student,Non-editing teacher |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your course tour. | Enter manually |
| Display in middle of page | Welcome | Welcome to your course tour. | Manual |
And I log out
And I log in as "editor1"
When I am on "Course 1" course homepage
Expand Down Expand Up @@ -69,7 +69,7 @@ Feature: Apply tour filters to a tour
| Category | MainCat |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your course tour. | Enter manually |
| Display in middle of page | Welcome | Welcome to your course tour. | Manual |
And I log out
And I log in as "student1"
When I am on "Course 1" course homepage
Expand Down Expand Up @@ -101,7 +101,7 @@ Feature: Apply tour filters to a tour
| Course format | Weekly format |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your course tour. | Enter manually |
| Display in middle of page | Welcome | Welcome to your course tour. | Manual |
And I log out
And I log in as "student1"
When I am on "Course 1" course homepage
Expand Down Expand Up @@ -133,7 +133,7 @@ Feature: Apply tour filters to a tour
| Courses | C1 |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to your course tour. | Enter manually |
| Display in middle of page | Welcome | Welcome to your course tour. | Manual |
And I log out
And I log in as "student1"
When I am on "Course 1" course homepage
Expand Down Expand Up @@ -172,7 +172,7 @@ Feature: Apply tour filters to a tour
| CSS selector | .modtype_wiki |
And I add steps to the "Wiki tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to the Wiki tour | Enter manually |
| Display in middle of page | Welcome | Welcome to the Wiki tour | Manual |
And I add a new user tour with:
| Name | Forum tour |
| Description | A tour with both matches |
Expand All @@ -181,7 +181,7 @@ Feature: Apply tour filters to a tour
| CSS selector | .modtype_forum |
And I add steps to the "Forum tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to the Forum tour | Enter manually |
| Display in middle of page | Welcome | Welcome to the Forum tour | Manual |
And I am on "Course 1" course homepage
Then I should see "Welcome to the Wiki tour"
And I am on "Course 2" course homepage
Expand All @@ -201,7 +201,7 @@ Feature: Apply tour filters to a tour
| CSS selector | #page-my-index |
And I add steps to the "First tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to the First tour | Enter manually |
| Display in middle of page | Welcome | Welcome to the First tour | Manual |
And I add a new user tour with:
| Name | Second tour |
| Description | The second tour |
Expand All @@ -210,7 +210,7 @@ Feature: Apply tour filters to a tour
| CSS selector | #page-my-index |
And I add steps to the "Second tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to the Second tour | Enter manually |
| Display in middle of page | Welcome | Welcome to the Second tour | Manual |
And I add a new user tour with:
| Name | Third tour |
| Description | The third tour |
Expand All @@ -219,7 +219,7 @@ Feature: Apply tour filters to a tour
| CSS selector | #page-my-index |
And I add steps to the "Third tour" tour:
| targettype | Title | id_content | Content type |
| Display in middle of page | Welcome | Welcome to the Third tour | Enter manually |
| Display in middle of page | Welcome | Welcome to the Third tour | Manual |
And I am on homepage
Then I should see "Welcome to the First tour"
And I open the User tour settings page
Expand Down

0 comments on commit efdd77a

Please sign in to comment.