cc

Ruby code posted by cc
created at 14 Jan 17:42

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Feature: Login feature

  Scenario: As a invalid user if I forgot to enter my username, application warns me about it
    When I press "Signin"
    Then I wait for "Please enter your Username" to appear

  Scenario: As a invalid user if I forgot to enter my password, application warns me about it
    Given I enter text "chao" into field with id "signin_username"
    When I press "Signin"
    Then I wait for "Please enter your Password" to appear

  Scenario: As a invalid user if I enter my username or password wrong I got error
    Given I enter text "chao" into field with id "signin_username"
    Given I enter text "pass" into field with id "signin_password"
    When I press "Signin"
    Then I wait up to 90 seconds for "The username or password you entered is incorrect." to appear
    Then take picture

  Scenario: As a invalid user if I enter my username or password wrong I got error
    Given I enter text "chao" into field with id "signin_username"
    Given I enter text "test123456" into field with id "signin_password"
    When I press "Signin"
    Then I wait for "Signing in, please wait…" to appear
    Then I wait for dialog to close
    Then I see "My Profile"
    Then I see "My Wishlist"
    Then take picture
1.23 KB in 4 ms with coderay