Newer
Older
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' }

Rajab Natshah
committed
# 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' }
Background:
Given I am a logged in user with the "webmaster" user

Rajab Natshah
committed
@init @tools @local @development @staging
Scenario: Create the test_authenticated user.
When I go to "/admin/people/create"
And I wait

Rajab Natshah
committed
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"

Rajab Natshah
committed
And I fill in "dD.123123ddd" for "Password"
And I fill in "dD.123123ddd" for "Confirm password"
And I press "Create new account"
And I wait

Rajab Natshah
committed
Then I should not see "The name test_authenticated is already taken."

Rajab Natshah
committed

Rajab Natshah
committed
@init @tools @local @development @staging
Scenario: Create the test_editor user.
When I go to "/admin/people/create"
And I wait

Rajab Natshah
committed
Then I should see "Add user"

Rajab Natshah
committed
When I fill in "editor.test@vardot.com" for "Email address"
And I fill in "test_editor" for "Username"

Rajab Natshah
committed
And I fill in "dD.123123ddd" for "Password"
And I fill in "dD.123123ddd" for "Confirm password"
And I check the box "Editor"
And I press "Create new account"
And I wait

Rajab Natshah
committed
Then I should not see "The name test_editor is already taken."

Rajab Natshah
committed
@init @tools @local @development @staging
Scenario: Create the test_content_admin user.
When I go to "/admin/people/create"
And I wait

Rajab Natshah
committed
Then I should see "Add user"

Rajab Natshah
committed
When I fill in "content.admin.test@vardot.com" for "Email address"
And I fill in "test_content_admin" for "Username"

Rajab Natshah
committed
And I fill in "dD.123123ddd" for "Password"
And I fill in "dD.123123ddd" for "Confirm password"
And I check the box "Content Admin"
And I press "Create new account"
And I wait

Rajab Natshah
committed
Then I should not see "The name test_content_admin is already taken."

Rajab Natshah
committed
@init @tools @local @development @staging

Rajab Natshah
committed
Scenario: Create the test_seo_admin user.

Rajab Natshah
committed
When I go to "/admin/people/create"
And I wait

Rajab Natshah
committed
Then I should see "Add user"
When I fill in "seo.admin.test@vardot.com" for "Email address"

Rajab Natshah
committed
And I fill in "test_seo_admin" for "Username"

Rajab Natshah
committed
And I fill in "dD.123123ddd" for "Password"
And I fill in "dD.123123ddd" for "Confirm password"
And I check the box "SEO Admin"

Rajab Natshah
committed
And I press "Create new account"
And I wait

Rajab Natshah
committed
Then I should not see "The name test_seo_admin is already taken."

Rajab Natshah
committed

Rajab Natshah
committed
@init @tools @local @development @staging
Scenario: Create the test_site_admin user.
When I go to "/admin/people/create"
And I wait

Rajab Natshah
committed
Then I should see "Add user"

Rajab Natshah
committed
When I fill in "site.admin.test@vardot.com" for "Email address"
And I fill in "test_site_admin" for "Username"

Rajab Natshah
committed
And I fill in "dD.123123ddd" for "Password"
And I fill in "dD.123123ddd" for "Confirm password"
And I check the box "Site Admin"
And I press "Create new account"
And I wait

Rajab Natshah
committed
Then I should not see "The name test_site_admin is already taken."

Rajab Natshah
committed

Rajab Natshah
committed
@init @tools @local @development @staging
Scenario: Create the test_super_admin user.
When I go to "/admin/people/create"
And I wait

Rajab Natshah
committed
Then I should see "Add user"

Rajab Natshah
committed
When I fill in "super.admin.test@vardot.com" for "Email address"
And I fill in "test_super_admin" for "Username"

Rajab Natshah
committed
And I fill in "dD.123123ddd" for "Password"
And I fill in "dD.123123ddd" for "Confirm password"
And I check the box "Super Admin"
And I press "Create new account"
And I wait

Rajab Natshah
committed
Then I should not see "The name test_super_admin is already taken."