Merge branch 'MDL-70726-3.9' of https://github.com/NashTechOpenUniversity/moodle into MOODLE_39_STABLE
This commit is contained in:
@@ -132,12 +132,12 @@ Feature: Upload users
|
||||
# Boost check.
|
||||
And I log in as "jonest"
|
||||
And I am on "Maths" course homepage
|
||||
And "Turn editing on" "button" should not exist
|
||||
And "Calendar" "link" should be visible
|
||||
And I log out
|
||||
# Classic check.
|
||||
And I log in as "reznor"
|
||||
And I am on "Maths" course homepage
|
||||
And "Turn editing on" "button" should exist
|
||||
And "Calendar" "link" should not be visible
|
||||
|
||||
@javascript
|
||||
Scenario: Upload users setting their user theme when allowuserthemes is false
|
||||
|
||||
@@ -120,4 +120,4 @@ Feature: Backpack badges
|
||||
And I click on "Delete" "button" in the "Delete site backpack" "dialogue"
|
||||
Then I should see "The site backpack has been deleted."
|
||||
And I should not see "https://dc.imsglobal.org"
|
||||
And "Delete" "button" should not exist
|
||||
And "Delete" "button" should not be visible
|
||||
|
||||
@@ -44,4 +44,4 @@ Feature: Manage H5P content from the content bank
|
||||
And I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
When I follow "filltheblanks.h5p"
|
||||
Then "region-main-settings-menu" "region" should not exist
|
||||
Then "Rename" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
|
||||
@@ -58,7 +58,7 @@ Feature: Delete H5P file from the content bank
|
||||
And I click on "Content bank" "link" in the "Navigation" "block"
|
||||
And I should see "filltheblanks.h5p"
|
||||
And I follow "filltheblanks.h5p"
|
||||
Then ".header-actions-container" "css_element" should not exist
|
||||
Then "Delete" "link" should not exist in the "region-main-settings-menu" "region"
|
||||
And I click on "Content bank" "link"
|
||||
And I click on "Upload" "link"
|
||||
And I click on "Choose a file..." "button"
|
||||
|
||||
@@ -24,16 +24,18 @@ Feature: Search content in the content bank
|
||||
And I expand "Site pages" node
|
||||
And I click on "Content bank" "link"
|
||||
And I should see "santjordi.h5p"
|
||||
And "Clear search input" "button" should not exist
|
||||
And "Clear search input" "button" should not be visible
|
||||
And I should not see "items found"
|
||||
When I set the field "Search" to "book"
|
||||
Then "Clear search input" "button" should exist
|
||||
# Waiting for the animation to show the button to finish.
|
||||
And I wait "1" seconds
|
||||
Then "Clear search input" "button" should be visible
|
||||
And I should see "3 items found"
|
||||
And I should see "SantJordi_book"
|
||||
And I should see "mathsbook.h5p"
|
||||
And I should see "historybook.h5p"
|
||||
And I set the field "Search" to "sant"
|
||||
And "Clear search input" "button" should exist
|
||||
And "Clear search input" "button" should be visible
|
||||
And I should see "5 items found"
|
||||
And I set the field "Search" to "santjordi"
|
||||
And I should see "4 items found"
|
||||
@@ -42,10 +44,14 @@ Feature: Search content in the content bank
|
||||
And I should see "SantJordi_book"
|
||||
And I should see "Dragon_santjordi.h5p"
|
||||
And I click on "Clear search input" "button"
|
||||
And "Clear search input" "button" should not exist
|
||||
# Waiting for the animation to hide the button to finish.
|
||||
And I wait "1" seconds
|
||||
And "Clear search input" "button" should not be visible
|
||||
And I should not see "items found"
|
||||
And I set the field "Search" to ".h5p"
|
||||
And "Clear search input" "button" should exist
|
||||
# Waiting for the animation to show the button to finish.
|
||||
And I wait "1" seconds
|
||||
And "Clear search input" "button" should be visible
|
||||
And I should see "7 items found"
|
||||
And I set the field "Search" to "friend"
|
||||
And I should see "0 items found"
|
||||
|
||||
@@ -51,8 +51,8 @@ Feature: Display and choose from the available activities in course
|
||||
And I should see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "help" "core_course > Activity chooser screen"
|
||||
And I should see "Back" in the "help" "core_course > Activity chooser screen"
|
||||
When I click on "Back" "button" in the "help" "core_course > Activity chooser screen"
|
||||
Then "modules" "core_course > Activity chooser screen" should exist
|
||||
And "help" "core_course > Activity chooser screen" should not exist
|
||||
Then "modules" "core_course > Activity chooser screen" should be visible
|
||||
And "help" "core_course > Activity chooser screen" should not be visible
|
||||
And "Back" "button" should not exist in the "modules" "core_course > Activity chooser screen"
|
||||
And I should not see "The assignment activity module enables a teacher to communicate tasks, collect work and provide grades and feedback." in the "Add an activity or resource" "dialogue"
|
||||
|
||||
@@ -123,24 +123,26 @@ Feature: Display and choose from the available activities in course
|
||||
And I should see "Lesson" in the "Add an activity or resource" "dialogue"
|
||||
When I set the field "search" to ""
|
||||
And I should not see "1 results found" in the "Add an activity or resource" "dialogue"
|
||||
Then ".searchresultscontainer" "css_element" should not exist
|
||||
Then ".searchresultscontainer" "css_element" should not be visible
|
||||
And ".optionscontainer" "css_element" should exist
|
||||
|
||||
Scenario: Teacher can not see a "clear" button if a search query is not entered in the activity chooser search bar
|
||||
When I click on "Add an activity or resource" "button" in the "Topic 1" "section"
|
||||
Then "Clear search input" "button" should not exist
|
||||
Then "Clear search input" "button" should not be visible
|
||||
|
||||
Scenario: Teacher can see a "clear" button after entering a search query in the activity chooser search bar
|
||||
Given I click on "Add an activity or resource" "button" in the "Topic 1" "section"
|
||||
When I set the field "search" to "Search query"
|
||||
Then "Clear search input" "button" should not exist
|
||||
Then "Clear search input" "button" should not be visible
|
||||
|
||||
Scenario: Teacher can not see a "clear" button if the search query is removed in the activity chooser search bar
|
||||
Given I click on "Add an activity or resource" "button" in the "Topic 1" "section"
|
||||
And I set the field "search" to "Search query"
|
||||
And "Clear search input" "button" should exist
|
||||
When I set the field "search" to ""
|
||||
Then "Clear search input" "button" should not exist
|
||||
# Waiting for the animation to hide the button to finish.
|
||||
And I wait "1" seconds
|
||||
Then "Clear search input" "button" should not be visible
|
||||
|
||||
Scenario: Teacher can instantly remove the search query from the activity search bar by clicking on the "clear" button
|
||||
Given I click on "Add an activity or resource" "button" in the "Topic 1" "section"
|
||||
@@ -148,7 +150,7 @@ Feature: Display and choose from the available activities in course
|
||||
And I should see "results found" in the "Add an activity or resource" "dialogue"
|
||||
When I click on "Clear search input" "button"
|
||||
Then I should not see "Search query"
|
||||
And ".searchresultscontainer" "css_element" should not exist
|
||||
And ".searchresultscontainer" "css_element" should not be visible
|
||||
And ".optionscontainer" "css_element" should exist
|
||||
|
||||
Scenario: Teacher gets the base case for the Activity Chooser tab mode
|
||||
|
||||
@@ -1000,7 +1000,7 @@ EOF;
|
||||
// Using the spin method as we want a reduced timeout but there is no need for a 0.1 seconds interval
|
||||
// because in the optimistic case we will timeout.
|
||||
// If all goes good it will throw an ElementNotFoundExceptionn that we will catch.
|
||||
return $this->find($selectortype, $element, $exception, false, behat_base::get_reduced_timeout());
|
||||
$this->find($selectortype, $element, $exception, false, behat_base::get_reduced_timeout());
|
||||
} catch (ElementNotFoundException $e) {
|
||||
// We expect the element to not be found.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user