1 |
efrain |
1 |
@tool @tool_httpsreplace
|
|
|
2 |
Feature: View the httpsreplace report
|
|
|
3 |
In order to switch to https
|
|
|
4 |
As an admin
|
|
|
5 |
I need to be able to automatically replace http links
|
|
|
6 |
|
|
|
7 |
Background: Create some http links
|
|
|
8 |
# This is a slow running feature (more than the default 30 seconds on slow environments)
|
|
|
9 |
# so we are allowing up to 120 (factor = 4) seconds to the replacement to complete.
|
|
|
10 |
Given I mark this test as slow setting a timeout factor of 4
|
|
|
11 |
|
|
|
12 |
And I am on site homepage
|
|
|
13 |
And the following "courses" exist:
|
|
|
14 |
| fullname | shortname | category | summary |
|
|
|
15 |
| Course 1 | C1 | 0 | <img src="http://intentionally.unavailable/test.png"> <img src="http://download.moodle.org/unittest/test.jpg"> |
|
|
|
16 |
And I log in as "admin"
|
|
|
17 |
|
|
|
18 |
@javascript
|
|
|
19 |
Scenario: Go to the HTTPS replace report screen. Make sure broken domains are reported.
|
|
|
20 |
When I navigate to "Security > HTTP security" in site administration
|
|
|
21 |
And I follow "HTTPS conversion tool"
|
|
|
22 |
And I press "Continue"
|
|
|
23 |
Then I should see "intentionally.unavailable"
|
|
|
24 |
|
|
|
25 |
@javascript
|
|
|
26 |
Scenario: Use the find and replace tool.
|
|
|
27 |
When I navigate to "Security > HTTP security" in site administration
|
|
|
28 |
And I follow "HTTPS conversion tool"
|
|
|
29 |
And I press "Continue"
|
|
|
30 |
And I set the field "I understand the risks of this operation" to "1"
|
|
|
31 |
And I press "Perform conversion"
|
|
|
32 |
Then I should see "intentionally.unavailable"
|
|
|
33 |
And I should see "download.moodle.org"
|