[Git][noosfero/noosfero][master] cucumber: fix tests related to control panel refactoring

Rodrigo Souto gitlab at mg.gitlab.com
Fri May 25 18:12:52 BRT 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
b5601446 by Rodrigo Souto at 2018-05-25T20:49:44Z
cucumber: fix tests related to control panel refactoring

- - - - -


2 changed files:

- features/change_appearance.feature
- features/organization_custom_fields.feature


Changes:

=====================================
features/change_appearance.feature
=====================================
--- a/features/change_appearance.feature
+++ b/features/change_appearance.feature
@@ -11,11 +11,11 @@ Feature: Change appearance
   Scenario: Change appearance from default(3 boxes) to Left Top and Right(4 boxes)
     Given I am logged in as "joaosilva"
     And I go to joaosilva's control panel
-    And I follow "Edit sideboxes"
+    And I follow "Blocks" within "#section-design"
     And I should not see an element ".box-4"
     And I go to joaosilva's control panel
-    And I follow "Edit Appearance"
+    And I follow "Appearance" within "#section-design"
     And I follow "Top and Side Bars"
     And I go to joaosilva's control panel
-    And I follow "Edit sideboxes"
+    And I follow "Blocks" within "#section-design"
     And I should see an element ".box-4"


=====================================
features/organization_custom_fields.feature
=====================================
--- a/features/organization_custom_fields.feature
+++ b/features/organization_custom_fields.feature
@@ -16,7 +16,7 @@ Feature: organization custom fields
       | display_name  |
       | contact_email |
       | location      |
-    And I follow "Manage my groups"
+    And I follow "Groups" within "#section-relationships"
     When I follow <creation_button>
     Then I should not see "Display name"
     Then I should not see "Contact email"
@@ -35,19 +35,19 @@ Feature: organization custom fields
       | Organization  | organization  |
     And "Joao Silva" is admin of "Organization"
     And I am on organization's control panel
-    And I follow <information>
+    And I follow "Informations" within "#section-profile"
     Then I should see "Display name"
     Then I should see "Contact email"
   Examples:
-    | organization  | information                     |
-    | community     | "Community Info and settings"   |
-    | enterprise    | "Enterprise Info and settings"  |
+    | organization  |
+    | community     |
+    | enterprise    |
 
   Scenario Outline: organization required fields are displayed on creation
     Given the following <organization> fields are required fields
       | display_name  |
       | contact_email |
-    And I follow "Manage my groups"
+    And I follow "Groups" within "#section-relationships"
     And I follow <creation_button>
     When I press <confirmation_button>
     Then I should see "Display name can't be blank"
@@ -66,7 +66,7 @@ Feature: organization custom fields
       | Organization  |  organization | organization | bla at bleee.com | city |
     And "Joao Silva" is admin of "Organization"
     And I am on organization's control panel
-    And I follow <information>
+    And I follow "Informations" within "#section-profile"
     And I fill in the following:
       | Display name  | |
       | Contact email | |
@@ -74,16 +74,16 @@ Feature: organization custom fields
     Then I should see "Display name can't be blank"
     Then I should see "Contact email can't be blank"
   Examples:
-    | organization  | information                     |
-    | community     | "Community Info and settings"   |
-    | enterprise    | "Enterprise Info and settings"  |
+    | organization  |
+    | community     |
+    | enterprise    |
 
   Scenario Outline: organization signup fields are displayed on creation
     Given the following <organization> fields are signup fields
       | display_name  |
       | contact_email |
       | location      |
-    And I follow "Manage my groups"
+    And I follow "Groups" within "#section-relationships"
     When I follow <creation_button>
     Then I should see "Display name"
     Then I should see "Contact email"



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/b560144670609f48eaf7bc215b209ea050d18624

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/b560144670609f48eaf7bc215b209ea050d18624
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180525/d0fb00d8/attachment-0001.html>


More information about the Noosfero-dev mailing list