MDL-68674 behat: make content bank steps more specific

This commit is contained in:
Simey Lameze
2024-02-29 09:41:52 +07:00
committed by Huong Nguyen
parent e3d6973ed2
commit 01f67edc81
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -62,7 +62,7 @@ Feature: Content bank use editor feature
And I switch to "h5p-editor-iframe" class iframe
And I switch to the main frame
And I click on "Cancel" "button"
And I should see "filltheblanks.h5p" in the "h2" "css_element"
And "filltheblanks.h5p" "heading" should exist
Scenario: Users can create new content if they have the required permission
Given I navigate to "H5P > Manage H5P content types" in site administration
@@ -116,7 +116,7 @@ Feature: Content bank use editor feature
And I set the field "Title" to "New title"
And I switch to the main frame
When I click on "Save" "button"
And I should see "filltheblanks.h5p" in the "h2" "css_element"
And "filltheblanks.h5p" "heading" should exist
And I click on "Edit" "link"
And I switch to "h5p-editor-iframe" class iframe
Then the field "Title" matches value "New title"
+5 -5
View File
@@ -27,12 +27,12 @@ Feature: Make content public or unlisted
And I click on "Content bank" "link" in the "Navigation" "block"
And I click on "filltheblanks.h5p" "link"
And I wait until the page is ready
And I should not see "filltheblanks.h5p (Unlisted)" in the "h2" "css_element"
And "filltheblanks.h5p (Unlisted)" "heading" should not exist
And I click on "More" "button"
And I should see "Make unlisted"
And I click on "Make unlisted" "link"
And I wait until the page is ready
Then I should see "filltheblanks.h5p (Unlisted)" in the "h2" "css_element"
Then "filltheblanks.h5p (Unlisted)" "heading" should exist
And I click on "More" "button"
And I should see "Make public"
@@ -131,7 +131,7 @@ Feature: Make content public or unlisted
And I click on "Upload" "link"
And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Upload content" filemanager
And I click on "Save changes" "button"
Then I should see "filltheblanks.h5p (Unlisted)" in the "h2" "css_element"
Then "filltheblanks.h5p (Unlisted)" "heading" should exist
@_file_upload
Scenario: User preference concerning content visibility overrides site-wide default content visibility
@@ -149,5 +149,5 @@ Feature: Make content public or unlisted
And I click on "Upload" "link"
And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Upload content" filemanager
And I click on "Save changes" "button"
Then I should see "filltheblanks.h5p" in the "h2" "css_element"
And I should not see "filltheblanks.h5p (Unlisted)" in the "h2" "css_element"
Then "filltheblanks.h5p" "heading" should exist
And "filltheblanks.h5p (Unlisted)" "heading" should not exist