-
Notifications
You must be signed in to change notification settings - Fork 0
/
validate-address-mgr.feature
55 lines (47 loc) · 2.97 KB
/
validate-address-mgr.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
49
50
51
52
53
54
55
Feature: Manage a Users Addresses
In order to make create an order on the platform
A user should be able to
Create, Delete, Update and Retrieve multiple addresses
Scenario: I attempt to create an Address
Given I am have an account on the platform
And and I am logged in
When I enter the following details
| firstname | lastname | company | line1 | line2 | city | state | country | postcode | type | latitude | longitude | landmark |
| james | cameron | Uber | 12 Ayo Jagun | Off Abike Animasawun | Lekki Phase 1 | Lagos | Nigeria | NA | Home | 0.0 | 0.1 | Soundcity Street |
And the my customerId '<customerId>'
Then I should get a success message with a response with a valid numeric id
Scenario: I attempt to create an Address without entering any details
Given I am have an account on the platform
And and I am logged in
When I enter the following details
| firstname | lastname | company | line1 | line2 | city | state | country | postcode | type | latitude | longitude | landmark |
| | | | | | | | | | | | | |
And the my customerId '<customerId>'
Then I should get an error response stating that an empty address cannot be created
Scenario: I attempt to create an Address without entering the required details
Given I am have an account on the platform
And and I am logged in
When I enter the following details
| firstname | lastname | company | line1 | line2 | city | state | country | postcode | type | latitude | longitude | landmark |
| james | cameron | Uber | | Off Abike Animasawun | | | | NA | | 0.0 | 0.1 | Souncity Street |
And the my customerId '<customerId>'
Then I should get an error response stating that the list of missing fields
Scenario: I attempt to create an Address without specifying a User
Given I am have an account on the platform
And and I am logged in
When I enter the following details
| firstname | lastname | company | line1 | line2 | city | state | country | postcode | type | latitude | longitude | landmark |
| james | cameron | Uber | 12 Ayo Jagun | Off Abike Animasawun | Lekki Phase 1 | Lagos | Nigeria | NA | Home | 0.0 | 0.1 | Soundcity Street |
Then I should get a response with a response with a valid numeric id
Scenario: I attempt to retreive a Users Addresses
Given I am a user of the module
When I click Buy Now
Then I should see an error screen asking me to enter the details of the item i want to pay for
Scenario: I attempt to update a Users Addresses
Given I am a user of the module
When I click Buy Now
Then I should see an error screen asking me to enter the details of the item i want to pay for
Scenario: I attempt to delete a Users Addresses
Given I am a user of the module
When I click Buy Now
Then I should see an error screen asking me to enter the details of the item i want to pay for