cirandas.net

ref: master

features/edit_environment_templates.feature


 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
Feature: edit environment templates
  As an administrator
  I want to edit templates

  Background:
    Given that the default environment have all profile templates
    And I am logged in as admin
    And I am on the environment control panel

  @selenium
  Scenario: See links to edit all templates
    Given I follow "Profile templates"
    Then I should see "Person template"
    And I should see "Community template"
    And I should see "Enterprise template"
    And I should see "Inactive Enterprise template"

  @selenium
  Scenario: Go to control panel of person template
    Given I follow "Profile templates"
    And I follow exact "Person template"
    Then I should be on colivre.net_person_template's control panel

  @selenium
  Scenario: Go to control panel of enterprise template
    Given I follow "Profile templates"
    And I follow exact "Enterprise template"
    Then I should be on colivre.net_enterprise_template's control panel

  @selenium
  Scenario: Go to control panel of inactive enterprise template
    Given I follow "Profile templates"
    And I follow exact "Inactive Enterprise template"
    Then I should be on colivre.net_inactive_enterprise_template's control panel

  @selenium
  Scenario: Go to control panel of community template
    Given I follow "Profile templates"
    When I follow exact "Community template"
    Then I should be on colivre.net_community_template's control panel

  @selenium
  Scenario: Not see link to edit an unexistent template
    Given I follow "Profile templates"
    And that the default environment have no Inactive Enterprise template
    Then I should see "Person template"
    And I should see "Community template"
    And I should see "Enterprise template"
    And I should not see "Inactive enterprise template"