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 50aeb64a12db05ca94c5aa74a5af2bc06b006e7b..4e3bd16d63746cdbb59dfdf0fbad94f1c9cfa00c 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 @@ -10,7 +10,7 @@ Feature: Create default testing users. Background: Given I am a logged in user with the "webmaster" user - @init @tools @local @development @staging + @javascript @init @tools @local @development @staging Scenario: Create the test_authenticated user. When I go to "/admin/people/create" And I wait @@ -19,7 +19,11 @@ Feature: Create default testing users. And I fill in "test_authenticated" for "Username" And I press "Create new account" And I wait - And I go to "/admin/people" + Then I should see "Created a new user account" + + @javascript @init @tools @local @development @staging + Scenario: Set a passeord for the test_authenticated user. + When I go to "/admin/people" And I wait And I fill in "test_authenticated" for "Name or email contains" And I press "Filter" @@ -33,121 +37,141 @@ Feature: Create default testing users. And I wait Then I should see "The changes have been saved." - @init @tools @local @development @staging + @javascript @init @tools @local @development @staging Scenario: Create the test_editor user. When I go to "/admin/people/create" And I wait Then I should see "Add user" - When I check the box "Editor" + When I check "Editor" And I fill in "editor.test@vardot.com" for "Email address" And I fill in "test_editor" for "Username" And I press "Create new account" And I wait - And I go to "/admin/people" - And I wait - And I fill in "test_editor" for "Name or email contains" - And I press "Filter" - And I wait - Then I should see "test_editor" - When I click "Edit" in the "test_editor" row - Then I should see "test_editor" - When I fill in "dD.123123ddd" for "Password" - And I fill in "dD.123123ddd" for "Confirm password" - And I press "Save" - And I wait - Then I should see "The changes have been saved." + Then I should see "Created a new user account" - @init @tools @local @development @staging + @javascript @init @tools @local @development @staging + Scenario: Set a passeord for the test_editor user. + When I go to "/admin/people" + And I wait + And I fill in "test_editor" for "Name or email contains" + And I press "Filter" + And I wait + Then I should see "test_editor" + When I click "Edit" in the "test_editor" row + Then I should see "test_editor" + When I fill in "dD.123123ddd" for "Password" + And I fill in "dD.123123ddd" for "Confirm password" + And I press "Save" + And I wait + Then I should see "The changes have been saved." + + @javascript @init @tools @local @development @staging Scenario: Create the test_content_admin user. When I go to "/admin/people/create" And I wait Then I should see "Add user" - When I check the box "Content Admin" + When I check "Content Admin" And I fill in "content.admin.test@vardot.com" for "Email address" And I fill in "test_content_admin" for "Username" And I press "Create new account" And I wait - And I go to "/admin/people" - And I wait - And I fill in "test_content_admin" for "Name or email contains" - And I press "Filter" - And I wait - Then I should see "test_content_admin" - When I click "Edit" in the "test_content_admin" row - Then I should see "test_content_admin" - When I fill in "dD.123123ddd" for "Password" - And I fill in "dD.123123ddd" for "Confirm password" - And I press "Save" - And I wait - Then I should see "The changes have been saved." + Then I should see "Created a new user account" - @init @tools @local @development @staging + @javascript @init @tools @local @development @staging + Scenario: Set a passeord for the test_content_admin user. + When I go to "/admin/people" + And I wait + And I fill in "test_content_admin" for "Name or email contains" + And I press "Filter" + And I wait + Then I should see "test_content_admin" + When I click "Edit" in the "test_content_admin" row + Then I should see "test_content_admin" + When I fill in "dD.123123ddd" for "Password" + And I fill in "dD.123123ddd" for "Confirm password" + And I press "Save" + And I wait + Then I should see "The changes have been saved." + + @javascript @init @tools @local @development @staging Scenario: Create the test_seo_admin user. When I go to "/admin/people/create" And I wait - When I check the box "SEO Admin" + When I check "SEO Admin" And I fill in "seo.admin.test@vardot.com" for "Email address" And I fill in "test_seo_admin" for "Username" And I press "Create new account" And I wait - And I go to "/admin/people" - And I wait - And I fill in "test_seo_admin" for "Name or email contains" - And I press "Filter" - And I wait - Then I should see "test_seo_admin" - When I click "Edit" in the "test_seo_admin" row - Then I should see "test_seo_admin" - When I fill in "dD.123123ddd" for "Password" - And I fill in "dD.123123ddd" for "Confirm password" - And I press "Save" - And I wait - Then I should see "The changes have been saved." + Then I should see "Created a new user account" + + @javascript @init @tools @local @development @staging + Scenario: Set a passeord for the test_seo_admin user. + When I go to "/admin/people" + And I wait + And I fill in "test_seo_admin" for "Name or email contains" + And I press "Filter" + And I wait + Then I should see "test_seo_admin" + When I click "Edit" in the "test_seo_admin" row + Then I should see "test_seo_admin" + When I fill in "dD.123123ddd" for "Password" + And I fill in "dD.123123ddd" for "Confirm password" + And I press "Save" + And I wait + Then I should see "The changes have been saved." - @init @tools @local @development @staging + @javascript @init @tools @local @development @staging Scenario: Create the test_site_admin user. When I go to "/admin/people/create" And I wait Then I should see "Add user" - When I check the box "Site Admin" + When I check "Site Admin" And I fill in "site.admin.test@vardot.com" for "Email address" And I fill in "test_site_admin" for "Username" And I press "Create new account" And I wait - And I go to "/admin/people" - And I wait - And I fill in "test_site_admin" for "Name or email contains" - And I press "Filter" - And I wait - Then I should see "test_site_admin" - When I click "Edit" in the "test_site_admin" row - Then I should see "test_site_admin" - When I fill in "dD.123123ddd" for "Password" - And I fill in "dD.123123ddd" for "Confirm password" - And I press "Save" - And I wait - Then I should see "The changes have been saved." + Then I should see "Created a new user account" + + @javascript @init @tools @local @development @staging + Scenario: Set a passeord for the test_site_admin user. + When I go to "/admin/people" + And I wait + And I fill in "test_site_admin" for "Name or email contains" + And I press "Filter" + And I wait + Then I should see "test_site_admin" + When I click "Edit" in the "test_site_admin" row + Then I should see "test_site_admin" + When I fill in "dD.123123ddd" for "Password" + And I fill in "dD.123123ddd" for "Confirm password" + And I press "Save" + And I wait + Then I should see "The changes have been saved." - @init @tools @local @development @staging + @javascript @init @tools @local @development @staging Scenario: Create the test_super_admin user. When I go to "/admin/people/create" And I wait Then I should see "Add user" - When I check the box "Super Admin" + When I check "Super Admin" And I fill in "super.admin.test@vardot.com" for "Email address" And I fill in "test_super_admin" for "Username" And I press "Create new account" And I wait - And I go to "/admin/people" - And I wait - And I fill in "test_super_admin" for "Name or email contains" - And I press "Filter" - And I wait - Then I should see "test_super_admin" - When I click "Edit" in the "test_super_admin" row - Then I should see "test_super_admin" - When I fill in "dD.123123ddd" for "Password" - And I fill in "dD.123123ddd" for "Confirm password" - And I press "Save" - And I wait - Then I should see "The changes have been saved." + Then I should see "Created a new user account" + + @javascript @init @tools @local @development @staging + Scenario: Set a passeord for the test_super_admin user. + When I go to "/admin/people" + And I wait + And I fill in "test_super_admin" for "Name or email contains" + And I press "Filter" + And I wait + Then I should see "test_super_admin" + When I click "Edit" in the "test_super_admin" row + Then I should see "test_super_admin" + When I fill in "dD.123123ddd" for "Password" + And I fill in "dD.123123ddd" for "Confirm password" + And I press "Save" + And I wait + Then I should see "The changes have been saved." diff --git a/tests/features/varbase/step2-apply-tests/03-admin-management/03-06-responsive-preview.feature b/tests/features/varbase/step2-apply-tests/03-admin-management/03-06-responsive-preview.feature new file mode 100644 index 0000000000000000000000000000000000000000..bf926ea3516dadf79419fbdd50363a2547813690 --- /dev/null +++ b/tests/features/varbase/step2-apply-tests/03-admin-management/03-06-responsive-preview.feature @@ -0,0 +1,21 @@ +Feature: Preview the site in a number of responsive devices. +As a site admin user +I want to be able to preview the look and feel of the site in a number of devices +So that I can make sure that the site looks good in small devices too. + + Background: + Given I am a logged in user with the "webmaster" user + + @javascript @check @local @development @staging @production + Scenario: Check the site in a number of responsive preview devices + When I go to the homepage + And I wait + Then I should see "Welcome to Varbase" + When I press "Preview page layout" + Then I should see "iPhone XS" + And I should see "iPhone XS Max" + And I should see "iPhone 7" + And I should see "iPhone 7+" + And I should see "Galaxy S7" + And I should see "iPad Air 2" + And I should see "Galaxy Tab 2 10"