| Línea 34... |
Línea 34... |
| 34 |
| supportavailability | 1 |
|
34 |
| supportavailability | 1 |
|
| 35 |
# Confirm unauthenticated visitor cannot see the option or directly access the page.
|
35 |
# Confirm unauthenticated visitor cannot see the option or directly access the page.
|
| 36 |
When I am on site homepage
|
36 |
When I am on site homepage
|
| 37 |
Then I should not see "Contact site support" in the "page-footer" "region"
|
37 |
Then I should not see "Contact site support" in the "page-footer" "region"
|
| 38 |
And I am on the "user > Contact Site Support" page
|
38 |
And I am on the "user > Contact Site Support" page
|
| 39 |
And I should see "Acceptance test site" in the "page-header" "region"
|
- |
|
| 40 |
And I should not see "Contact site support" in the "page-header" "region"
|
39 |
And I should not see "Contact site support" in the "page-header" "region"
|
| 41 |
# Confirm someone logged in as guest cannot see the option or directly access the page.
|
40 |
# Confirm someone logged in as guest cannot see the option or directly access the page.
|
| 42 |
And I log in as "guest"
|
41 |
And I log in as "guest"
|
| 43 |
And I should not see "Contact site support" in the "page-footer" "region"
|
42 |
And I should not see "Contact site support" in the "page-footer" "region"
|
| 44 |
And I am on the "user > Contact Site Support" page
|
43 |
And I am on the "user > Contact Site Support" page
|
| 45 |
And I should see "Acceptance test site" in the "page-header" "region"
|
- |
|
| 46 |
And I should not see "Contact site support" in the "page-header" "region"
|
44 |
And I should not see "Contact site support" in the "page-header" "region"
|
| 47 |
And I log out
|
45 |
And I log out
|
| 48 |
# Confirm logged in user has access to the contact form.
|
46 |
# Confirm logged in user has access to the contact form.
|
| 49 |
And I log in as "user1"
|
47 |
And I log in as "user1"
|
| 50 |
And I should see "Contact site support" in the "page-footer" "region"
|
48 |
And I should see "Contact site support" in the "page-footer" "region"
|
| Línea 52... |
Línea 50... |
| 52 |
And I should see "Contact site support" in the "page-header" "region"
|
50 |
And I should see "Contact site support" in the "page-header" "region"
|
| Línea 53... |
Línea 51... |
| 53 |
|
51 |
|
| 54 |
Scenario: Contact site support can be disabled
|
52 |
Scenario: Contact site support can be disabled
|
| 55 |
Given the following config values are set as admin:
|
53 |
Given the following config values are set as admin:
|
| 56 |
| supportavailability | 0 |
|
54 |
| supportavailability | 0 |
|
| 57 |
| defaulthomepage | home |
|
55 |
| defaulthomepage | 0 |
|
| 58 |
# Confirm unauthenticated visitor cannot see the option.
|
56 |
# Confirm unauthenticated visitor cannot see the option.
|
| 59 |
When I am on site homepage
|
57 |
When I am on site homepage
|
| 60 |
Then I should not see "Contact site support" in the "page-footer" "region"
|
58 |
Then I should not see "Contact site support" in the "page-footer" "region"
|
| 61 |
# Confirm someone logged in as guest cannot see the option.
|
59 |
# Confirm someone logged in as guest cannot see the option.
|
| Línea 98... |
Línea 96... |
| 98 |
|
96 |
|
| 99 |
Scenario: Visiting the contact site support page still redirects to homepage if access to support is disabled
|
97 |
Scenario: Visiting the contact site support page still redirects to homepage if access to support is disabled
|
| 100 |
Given the following config values are set as admin:
|
98 |
Given the following config values are set as admin:
|
| 101 |
| supportavailability | 0 |
|
99 |
| supportavailability | 0 |
|
| 102 |
| supportpage | profile.php |
|
100 |
| supportpage | profile.php |
|
| 103 |
| defaulthomepage | home |
|
101 |
| defaulthomepage | 0 |
|
| 104 |
When I log in as "user1"
|
102 |
When I log in as "user1"
|
| 105 |
And I am on the "user > Contact Site Support" page
|
103 |
And I am on the "user > Contact Site Support" page
|
| 106 |
Then I should see "Acceptance test site" in the "page-header" "region"
|
104 |
Then I should see "Acceptance test site" in the "page-header" "region"
|