-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesafio4.feature
30 lines (24 loc) · 1.12 KB
/
desafio4.feature
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
28
29
30
Feature: Challenge 4
Scenario: Username not provided
Given I navigate to the page 'login'
And I click on the element 'username'
When I click the element 'login'
Then a message is displayed 'user name must be specified'
Scenario: Username provided
Given I navigate to the page 'login'
And I click on the element 'username'
When I type my username "myusername"
And I click on the element 'login'
And no validation message is displayed
Scenario: Password not provided
Given I navigate to the page 'login'
And I click on the element 'password'
When I click the element 'login'
And I click button 'login'
Then element is displayed 'password must be specified'
Scenario: Password provided
Given I navigate to the page 'login'
And I click on the element 'password'
When I type my password "mypassword"
And I click button 'login'
And no validation message is displayed