Sha256: 0d291ffd26f7443f124d83086e48412c185d291cbffa4b5ee72e40e72ad02207

Contents?: true

Size: 1.77 KB

Versions: 1

Compression:

Stored size: 1.77 KB

Contents

Feature: Trial plans

  Background:
    Given the following plan exists:
      | name    | price | trial |
      | Trial   | 0     | true  |
      | Eternal | 0     | false |

  Scenario: Sign up for a trial plan
    When I go to the list of plans page
    And I follow "Trial"
    And I should see "Your trial will expire after 30 days"
    And I fill in "Email" with "email@person.com"
    And I fill in "Password" with "password"
    And I fill in "Confirm password" with "password"
    And I fill in "Your name" with "Robot"
    And I fill in "Company Name" with "Robots, Inc"
    And I fill in "Keyword" with "robotsinc"
    And I press "Sign up"
    Then I should see "created"

  Scenario: use an account during the trial
    Given a "Trial" account exists with a name of "Test" created 29 days ago
    And I am signed in as an admin of the "Test" account
    When I go to the projects page for the "Test" account
    Then I should see "Test"
    And I should not see "expired"

  Scenario: Try to use an expired trial plan
    Given a "Trial" account exists with a name of "Test" created 30 days ago
    And I am signed in as an admin of the "Test" account
    When I go to the projects page for the "Test" account
    Then I should be on the upgrade plan page for the "Test" account
    And I should see "expired"
    And the "Trial" plan should be disabled

  Scenario: Sign up for a non-trial plan
    When I go to the list of plans page
    And I follow "Eternal"
    Then I should not see "trial"

  Scenario: Use a non-trial plan forever
    Given an "Eternal" account exists with a name of "Test" created 30 days ago
    And I am signed in as an admin of the "Test" account
    When I go to the projects page for the "Test" account
    Then I should see "Test"
    And I should not see "expired"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
saucy-0.2.21 lib/generators/saucy/features/templates/features/trial_plans.feature