From e5c25017053fa4e2acd4c1ab288d10f5dc225eb8 Mon Sep 17 00:00:00 2001
From: Rajab Natshah <rajabn@gmail.com>
Date: Sun, 24 Dec 2017 15:23:29 +0200
Subject: [PATCH] Issue #2924033: Updated the Autoamted functional testing to
 work with the new password policy behavior

---
 .../01-create-default-testing-users.feature   | 21 ++++++++++++-------
 .../01-delete-default-testing-users.feature   |  1 +
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/tests/features/varbase/step1-init-tests/01-create-default-testing-users.feature b/tests/features/varbase/step1-init-tests/01-create-default-testing-users.feature
index 5b72e46b..04944927 100644
--- a/tests/features/varbase/step1-init-tests/01-create-default-testing-users.feature
+++ b/tests/features/varbase/step1-init-tests/01-create-default-testing-users.feature
@@ -3,6 +3,7 @@ Feature: Create default testing users.
 # test_authenticated: { email: 'authenticated.test@vardot.com', password: 'dD.123123ddd' }
 # test_editor: { email: 'editor.test@vardot.com', password: 'dD.123123ddd' }
 # test_content_admin: { email: 'content.admin.test@vardot.com', password: 'dD.123123ddd' }
+# test_seo_admin: { email: 'seo.admin.test@vardot.com', password: 'dD.123123ddd' }
 # test_site_admin: { email: 'site.admin.test@vardot.com', password: 'dD.123123ddd' }
 # test_super_admin: { email: 'super.admin.test@vardot.com', password: 'dD.123123ddd' }
 
@@ -13,7 +14,8 @@ Feature: Create default testing users.
   Scenario: Create the test_authenticated user.
      When I go to "/admin/people/create"
       And I wait
-      And I fill in "authenticated.test@vardot.com" for "Email address"
+     Then I should see "Add user"
+     When I fill in "authenticated.test@vardot.com" for "Email address"
       And I fill in "test_authenticated" for "Username"
       And I fill in "dD.123123ddd" for "Password"
       And I fill in "dD.123123ddd" for "Confirm password"
@@ -25,7 +27,8 @@ Feature: Create default testing users.
   Scenario: Create the test_editor user.
      When I go to "/admin/people/create"
       And I wait
-      And I fill in "editor.test@vardot.com" for "Email address"
+     Then I should see "Add user"
+     When I fill in "editor.test@vardot.com" for "Email address"
       And I fill in "test_editor" for "Username"
       And I fill in "dD.123123ddd" for "Password"
       And I fill in "dD.123123ddd" for "Confirm password"
@@ -38,7 +41,8 @@ Feature: Create default testing users.
   Scenario: Create the test_content_admin user.
      When I go to "/admin/people/create"
       And I wait
-      And I fill in "content.admin.test@vardot.com" for "Email address"
+     Then I should see "Add user"
+     When I fill in "content.admin.test@vardot.com" for "Email address"
       And I fill in "test_content_admin" for "Username"
       And I fill in "dD.123123ddd" for "Password"
       And I fill in "dD.123123ddd" for "Confirm password"
@@ -48,10 +52,11 @@ Feature: Create default testing users.
      Then I should not see "The name test_content_admin is already taken."
 
   @init @tools @local @development @staging
-  Scenario: Create the test_site_admin user.
+  Scenario: Create the test_seo_admin user.
      When I go to "/admin/people/create"
       And I wait
-      And I fill in "seo.admin.test@vardot.com" for "Email address"
+     Then I should see "Add user"
+     When I fill in "seo.admin.test@vardot.com" for "Email address"
       And I fill in "test_seo_admin" for "Username"
       And I fill in "dD.123123ddd" for "Password"
       And I fill in "dD.123123ddd" for "Confirm password"
@@ -64,7 +69,8 @@ Feature: Create default testing users.
   Scenario: Create the test_site_admin user.
      When I go to "/admin/people/create"
       And I wait
-      And I fill in "site.admin.test@vardot.com" for "Email address"
+     Then I should see "Add user"
+     When I fill in "site.admin.test@vardot.com" for "Email address"
       And I fill in "test_site_admin" for "Username"
       And I fill in "dD.123123ddd" for "Password"
       And I fill in "dD.123123ddd" for "Confirm password"
@@ -77,7 +83,8 @@ Feature: Create default testing users.
   Scenario: Create the test_super_admin user.
      When I go to "/admin/people/create"
       And I wait
-      And I fill in "super.admin.test@vardot.com" for "Email address"
+     Then I should see "Add user"
+     When I fill in "super.admin.test@vardot.com" for "Email address"
       And I fill in "test_super_admin" for "Username"
       And I fill in "dD.123123ddd" for "Password"
       And I fill in "dD.123123ddd" for "Confirm password"
diff --git a/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature b/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature
index b2a8005d..dbff783f 100644
--- a/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature
+++ b/tests/features/varbase/step3-cleanup-tests/01-delete-default-testing-users.feature
@@ -3,6 +3,7 @@ Feature: Delete default testing users.
 # test_authenticated: { email: 'authenticated.test@vardot.com', password: 'dD.123123ddd' }
 # test_editor: { email: 'editor.test@vardot.com', password: 'dD.123123ddd' }
 # test_content_admin: { email: 'content.admin.test@vardot.com', password: 'dD.123123ddd' }
+# test_seo_admin: { email: 'seo.admin.test@vardot.com', password: 'dD.123123ddd' }
 # test_site_admin: { email: 'site.admin.test@vardot.com', password: 'dD.123123ddd' }
 # test_super_admin: { email: 'super.admin.test@vardot.com', password: 'dD.123123ddd' }
 
-- 
GitLab