From d3796fd634e491663419609c6350f7a098b78a44 Mon Sep 17 00:00:00 2001
From: Rajab Natshah <rajabn@gmail.com>
Date: Tue, 5 Sep 2017 21:07:08 +0300
Subject: [PATCH] Issue #2905595: Optimization round for the automated
 functional acceptance testing

---
 ...ge_add-any-paragraph-type-to-the-page.feature | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tests/features/varbase/step2-apply-tests/04-content-structure/04-03-landing-page_add-any-paragraph-type-to-the-page.feature b/tests/features/varbase/step2-apply-tests/04-content-structure/04-03-landing-page_add-any-paragraph-type-to-the-page.feature
index 38b0d109..e7d402d6 100644
--- a/tests/features/varbase/step2-apply-tests/04-content-structure/04-03-landing-page_add-any-paragraph-type-to-the-page.feature
+++ b/tests/features/varbase/step2-apply-tests/04-content-structure/04-03-landing-page_add-any-paragraph-type-to-the-page.feature
@@ -129,12 +129,12 @@ So that the "Landing page" will show up having paragrpahs of different types
       And I press "Add Rich Text"
       And I wait
      Then I should see "Accordion section body"
-      And I fill in the rich text editor field "Text" with "Accordion Section Body test"
-     When I press "Save"
+     When I fill in the rich text editor field "Text" with "Accordion Section Body test"
+      And I press "Save"
      Then I should see "Landing page Test Landing page Accordion has been created"
-      And I click "Accordion Section Title test"
+     When I click "Accordion Section Title test"
       And I wait
-      And I should see "Accordion Section Body test"
+     Then I should see "Accordion Section Body test"
 
   @javascript @local @development @staging @production
   Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Drupal Block"
@@ -163,7 +163,7 @@ So that the "Landing page" will show up having paragrpahs of different types
 
   @javascript @local @development @staging @production
   Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Equal)"
-    Given I am a logged in user with the "test_site_admin" user
+    Given I am a logged in user with the "test_super_admin" user
      When I go to "node/add/landing_page"
       And I wait
       And I fill in "Test Landing page Columns (Equal)" for "Title"
@@ -232,7 +232,7 @@ So that the "Landing page" will show up having paragrpahs of different types
 
   @javascript @local @development @staging @production
   Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Two Uneven)"
-    Given I am a logged in user with the "test_site_admin" user
+    Given I am a logged in user with the "test_super_admin" user
      When I go to "node/add/landing_page"
       And I wait
       And I fill in "Test Landing page Columns (Two Uneven)" for "Title"
@@ -297,7 +297,7 @@ So that the "Landing page" will show up having paragrpahs of different types
 
   @javascript @local @development @staging @production
   Scenario: Check if a user with a permission to manage "Landing page" content type can add paragraphs of type "Columns (Three Uneven)"
-    Given I am a logged in user with the "test_site_admin" user
+    Given I am a logged in user with the "test_super_admin" user
      When I go to "node/add/landing_page"
       And I wait
       And I fill in "Test Landing page Columns (Three Uneven)" for "Title"
@@ -358,7 +358,7 @@ So that the "Landing page" will show up having paragrpahs of different types
      When I double click on the image with the "Embed Flag Earth all earth in space" title text
       And I switch to main frame
       And I wait for AJAX to finish
-  
+
       And I expand the "1" select list "dropbutton-multiple"
       And I press "Add Rich Text"
       And I wait for AJAX to finish
-- 
GitLab