9ff2a2a356eafbb5562bc401e04bd4b21f4e47b2
[lhc/web/wiklou.git] / tests / browser / features / login.feature
1 #
2 # This file is subject to the license terms in the LICENSE file found in the
3 # qa-browsertests top-level directory and at
4 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
5 # qa-browsertests, including this file, may be copied, modified, propagated, or
6 # distributed except according to the terms contained in the LICENSE file.
7 #
8 # Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
9 # qa-browsertests top-level directory and at
10 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
11 #
12 @chrome @en.wikipedia.beta.wmflabs.org @firefox @internet_explorer_6 @internet_explorer_7 @internet_explorer_8 @internet_explorer_9 @internet_explorer_10 @phantomjs @test2.wikipedia.org
13 Feature: Log in
14
15 Background:
16 Given I am at Log in page
17
18 Scenario: Go to Log in page
19 Then Username element should be there
20 And Password element should be there
21 And Log in element should be there
22
23 Scenario: Log in without entering credentials
24 When I log in without entering credentials
25 Then error box should be visible
26
27 Scenario: Log in without entering password
28 When I log in without entering password
29 Then error box should be visible
30
31 Scenario: Log in with incorrect username
32 When I log in with incorrect username
33 Then error box should be visible
34
35 Scenario: Log in with incorrect password
36 When I log in with incorrect password
37 Then error box should be visible
38
39 @login
40 Scenario: Log in with valid credentials
41 When I am logged in
42 Then error box should not be visible