6 To ensure the safety of the application
7 A regular user of the system
8 Must authenticate before using the app
16 - { keyword_type: 'Given', type: 'Given', text: 'the user "known_user"', line: 8 }
17 - { keyword_type: 'When', type: 'When', text: 'I go to the main page', line: 10 }
18 - { keyword_type: 'Then', type: 'Then', text: 'I should see the login form', line: 11 }
19 - { keyword_type: 'When', type: 'When', text: 'I fill in "login" with "<login>"', line: 13 }
20 - { keyword_type: 'When', type: 'And', text: 'I fill in "password" with "<password>"', line: 14 }
21 - { keyword_type: 'When', type: 'And', text: 'I press "Log In"', line: 15 }
22 - { keyword_type: 'Then', type: 'Then', text: 'the login request should fail', line: 16 }
23 - { keyword_type: 'Then', type: 'And', text: 'I should see the error message "Login or Password incorrect"', line: 17 }
27 22: [unknown_user, '']
29 24: ['', wrong_password]
30 25: ['', known_userpass]
31 26: [unknown_user, wrong_password]
32 27: [unknown_user, known_userpass]
33 28: [known_user, wrong_password]