MDL-46269 tool_httpsreplace: Add behat tests
This commit is contained in:
committed by
Marina Glancy
parent
7821d93aa6
commit
2533959982
@@ -0,0 +1,25 @@
|
||||
@tool @tool_httpsreplace
|
||||
Feature: View the httpsreplace report
|
||||
In order to switch to https
|
||||
As an admin
|
||||
I need to be able to automatically replace http links
|
||||
|
||||
Background: Create some http links
|
||||
Given I am on site homepage
|
||||
And the following "courses" exist:
|
||||
| fullname | shortname | category | summary |
|
||||
| Course 1 | C1 | 0 | <img src="http://intentionally.unavailable/test.png"> <img src="http://download.moodle.org/unittest/test.jpg"> |
|
||||
And I log in as "admin"
|
||||
|
||||
@javascript
|
||||
Scenario: Go to the HTTPS replace report screen. Make sure broken domains are reported.
|
||||
When I navigate to "HTTPS replace" node in "Site administration > Security"
|
||||
Then I should see "intentionally.unavailable"
|
||||
|
||||
@javascript
|
||||
Scenario: Use the find and replace tool.
|
||||
When I navigate to "HTTPS replace" node in "Site administration > Security"
|
||||
And I set the field "I understand the risks of this operation" to "1"
|
||||
And I press "Perform replacement"
|
||||
Then I should see "intentionally.unavailable"
|
||||
And I should see "download.moodle.org"
|
||||
Reference in New Issue
Block a user