Created
October 9, 2013 16:18
-
-
Save yurytolochko/6903886 to your computer and use it in GitHub Desktop.
Behat feature example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @cleanDatabase @javascript | |
| Feature: Getting Started | |
| Background: | |
| Given user "user@mail.com" with "Calvin" name | |
| Scenario: Check "I'm done" and "Hide forever" for getting started page. | |
| Given I am logged in as user@mail.com | |
| Then I should see "Welcome Calvin, we are excited you joined!" | |
| When I follow "Continue" | |
| And I follow "Hide forever" | |
| And I wait "2" | |
| Then I should see "My Week Entries" | |
| When I reload the page | |
| And I wait "2" | |
| Then I should not see "Geek Time Tracking" | |
| Scenario: Welcome page. | |
| Given I am logged in as user@mail.com | |
| Then I should see "Welcome Calvin, we are excited you joined!" | |
| When I follow "Continue" | |
| Then I should see "Geek Time Tracking" | |
| Scenario: Test Image Slider. | |
| Given I am logged in as user@mail.com | |
| When I follow "Continue" | |
| And I wait "2" | |
| Then I should see "Geek Time Tracking" in the getting started block | |
| When I go to next step in getting started | |
| And I wait "2" | |
| Then I should see "Start Using Tags & Refer Issues" in the getting started block | |
| When I go to previous step in getting started | |
| And I wait "2" | |
| Then "prev" getting started button should not be visible | |
| When I follow "3 Teams" | |
| And I wait "2" | |
| Then I should see "Track Time Together" in the getting started block | |
| When I go to next step in getting started | |
| And I wait "2" | |
| Then I should see "Manage Super Awesome Agency" in the getting started block | |
| When I go to next step in getting started | |
| And I wait "2" | |
| Then I should see "Provide Better Reports" in the getting started block | |
| When I go to next step in getting started | |
| And I wait "2" | |
| Then I should see "Start Using Projects" in the getting started block | |
| When I go to next step in getting started | |
| And I wait "2" | |
| Then I should see "That's It" in the breadcrumbs element | |
| And I should see "That's It" in the getting started block | |
| And "next" getting started button should not be visible | |
| Scenario: Test shortcuts. | |
| Given I am logged in as user@mail.com | |
| When I follow "Continue" | |
| And I wait "2" | |
| Then I should see "Geek Time Tracking" in the getting started block | |
| When I press "RIGHT" arrow | |
| Then I should see "Start Using Tags & Refer Issues" in the getting started block | |
| When I press "LEFT" arrow | |
| Then I should see "Geek Time Tracking" in the getting started block | |
| When I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I press "RIGHT" arrow | |
| And I wait "2" | |
| Then I should see "That's It" in the breadcrumbs element | |
| And I should see "That's It" in the getting started block | |
| And "next" getting started button should not be visible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment