Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
98804a0e
Commit
98804a0e
authored
Oct 05, 2021
by
victor
🙇
Committed by
Eloy Lafuente
Oct 05, 2021
Browse files
Merge branch 'MDL-71963' of
https://github.com/stronk7/moodle
parents
fa721972
ba84d525
Changes
1
Hide whitespace changes
Inline
Side-by-side
blocks/tests/behat/delete_block.feature
View file @
98804a0e
...
...
@@ -11,7 +11,7 @@ Feature: Block removal via modal
And
I log in as
"admin"
And
I am on
"Course 1"
course homepage with editing mode on
And
I add the
"Search forums"
block
And
I should see
"Search forums"
And
"Search forums"
"block"
should exist
@javascript
Scenario
:
Removing a block via modal should remove the block on the page
...
...
@@ -20,7 +20,7 @@ Feature: Block removal via modal
Then
"Delete block?"
"dialogue"
should exist
And
I click on
"Delete"
"button"
in the
"Delete block?"
"dialogue"
And
I wait to be redirected
And
I should not see
"Search forums"
And
"Search forums"
"block"
should not exist
@javascript
Scenario
:
Cancel removing a block via modal should retain the block on the page
...
...
@@ -29,4 +29,4 @@ Feature: Block removal via modal
Then
"Delete block?"
"dialogue"
should exist
And
I click on
"Cancel"
"button"
in the
"Delete block?"
"dialogue"
And
I should not see
"Delete block?"
And
I should see
"Search forums"
And
"Search forums"
"block"
should exist
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment