forked from TamiGeydarova/Cucumber_java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Task2.feature
48 lines (43 loc) · 1.94 KB
/
Task2.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Feature: Working with employee list
As a user
I want to add, delete, and edit entries on the employee list page
I want to be able to restore the list to its default state with a press of a button
Scenario: Adding a person
Given I am on the employee list page
When I click the Add button on the employee list page
And I populate the field name: "Max"
And I populate the field job: "Tester"
And I confirm adding a person
Then I see the person with name "Max" and job "Tester" on the list
Scenario: Editing a person
Given I am on the employee list page
And The list is in its default state
When I click the edit button on the person named "Mike"
And I populate the field job: "Janitor"
And I confirm editing a person
Then I see the person with name "Mike" and job "Janitor" on the list
Scenario: Removing a person
Given I am on the employee list page
And The list is in its default state
When I click the delete button on the person named "Mike"
Then I don't see the person with name "Mike" on the list
Scenario: Resetting a list after multiple changes
Given I am on the employee list page
And The list is in its default state
When I click the Add button on the employee list page
And I populate the field name: "Max"
And I populate the field job: "Tester"
And I confirm adding a person
And I click the edit button on the person named "Mike"
And I populate the field job: "Janitor"
And I confirm editing a person
And I click the delete button on the person named "Jill"
And I reset the list
Then The list is in its default state
Scenario: Using a Clear button
Given I am on the employee list page
And I click the Add button on the employee list page
And I populate the field name: "Max"
And I populate the field job: "Tester"
And I click the Clear button
Then The input fields appear empty