1 |
efrain |
1 |
@auth @auth_manual
|
|
|
2 |
Feature: Test manual authentication works.
|
|
|
3 |
In order to check manual authentication
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to go on login page and enter username and password.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username |
|
|
|
10 |
| teacher1 |
|
|
|
11 |
|
|
|
12 |
@javascript
|
|
|
13 |
Scenario: Check login works with javascript.
|
|
|
14 |
Given I am on homepage
|
|
|
15 |
And I expand navigation bar
|
|
|
16 |
And I click on "Log in" "link" in the ".logininfo" "css_element"
|
|
|
17 |
When I set the field "Username" to "teacher1"
|
|
|
18 |
And I set the field "Password" to "teacher1"
|
|
|
19 |
When I press "Log in"
|
|
|
20 |
Then I should see "You are logged in as"
|
|
|
21 |
|
|
|
22 |
Scenario: Check login works without javascript.
|
|
|
23 |
Given I am on homepage
|
|
|
24 |
And I click on "Log in" "link" in the ".logininfo" "css_element"
|
|
|
25 |
When I set the field "Username" to "teacher1"
|
|
|
26 |
And I set the field "Password" to "teacher1"
|
|
|
27 |
When I press "Log in"
|
|
|
28 |
Then I should see "You are logged in as"
|