Skip to content
Snippets Groups Projects
01-create-default-testing-users.feature 3.97 KiB
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' }
# 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

  @init @tools @local @development @staging
  Scenario: Create the test_authenticated user.
     When I go to "/admin/people/create"
      And I wait
     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"
      And I press "Create new account"
      And I wait
     Then I should not see "The name test_authenticated is already taken."
  @init @tools @local @development @staging
  Scenario: Create the test_editor user.
     When I go to "/admin/people/create"
      And I wait
     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"
      And I check the box "Editor"
      And I press "Create new account"
      And I wait
     Then I should not see "The name test_editor is already taken."
  @init @tools @local @development @staging
  Scenario: Create the test_content_admin user.
     When I go to "/admin/people/create"
      And I wait
     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"
      And I check the box "Content Admin"
      And I press "Create new account"
      And I wait
     Then I should not see "The name test_content_admin is already taken."
  @init @tools @local @development @staging
  Scenario: Create the test_seo_admin user.
     When I go to "/admin/people/create"
      And I wait
     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"
      And I check the box "SEO Admin"
     Then I should not see "The name test_seo_admin is already taken."
  @init @tools @local @development @staging
  Scenario: Create the test_site_admin user.
     When I go to "/admin/people/create"
      And I wait
     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"
      And I check the box "Site Admin"
      And I press "Create new account"
      And I wait
     Then I should not see "The name test_site_admin is already taken."
  @init @tools @local @development @staging
  Scenario: Create the test_super_admin user.
     When I go to "/admin/people/create"
      And I wait
     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"
      And I check the box "Super Admin"
      And I press "Create new account"
      And I wait
     Then I should not see "The name test_super_admin is already taken."