edit_environment_templates.feature
2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Feature: edit environment templates
As an administrator
I want edit templates
Background:
Given that the default environment have all profile templates
Scenario: See links to edit all templates
Given I am logged in as admin
When I follow "Administration"
And I follow "Edit Templates"
Then I should see "Edit Person Template" link
And I should see "Edit Community Template" link
And I should see "Edit Enterprise Template" link
And I should see "Edit Inactive Enterprise Template" link
Scenario: Go to control panel of person template
Given I am logged in as admin
When I follow "Administration"
And I follow "Edit Templates"
And I follow "Edit Person Template"
Then I should be on Person template's control panel
Scenario: Go to control panel of enterprise template
Given I am logged in as admin
When I follow "Administration"
And I follow "Edit Templates"
And I follow "Edit Enterprise Template"
Then I should be on Enterprise template's control panel
Scenario: Go to control panel of inactive enterprise template
Given I am logged in as admin
When I follow "Administration"
And I follow "Edit Templates"
And I follow "Edit Inactive Enterprise Template"
Then I should be on Inactive Enterprise template's control panel
Scenario: Go to control panel of community template
Given I am logged in as admin
When I follow "Administration"
And I follow "Edit Templates"
And I follow "Edit Community Template"
Then I should be on Community template's control panel
Scenario: Not see link to edit an unexistent template
Given that the default environment have no Inactive Enterprise template
And I am logged in as admin
When I follow "Administration"
And I follow "Edit Templates"
Then I should see "Edit Person Template" link
And I should see "Edit Community Template" link
And I should see "Edit Enterprise Template" link
And I should not see "Edit Inactive Enterprise Template" link