@@ -10,7 +10,7 @@ Feature:
10
10
11
11
Scenario : As an organization, I can list the assets from my organization
12
12
Given I am authenticated as "DT75"
13
- And I am on "/organizations"
13
+ And I am on "/organizations/201 "
14
14
When I follow "Afficher la liste de mes véhicules"
15
15
Then I should be on "/organizations/201/assets/"
16
16
And the response status code should be 200
@@ -22,12 +22,12 @@ Feature:
22
22
23
23
Scenario : As a parent organization, I can list the assets from my children organizations
24
24
Given I am authenticated as "DT75"
25
- And I am on "/organizations"
25
+ And I am on "/organizations/201 "
26
26
When I follow "Modifier mes structures"
27
- Then I should be on "/organizations/children"
27
+ Then I should be on "/organizations/201/ children/ "
28
28
And the response status code should be 200
29
29
When I follow "Liste des véhicules"
30
- Then I should be on "/organizations/203 /assets/"
30
+ Then I should be on "/organizations/201 /assets/?organizationId=203 "
31
31
And the response status code should be 200
32
32
And I should see "75012"
33
33
And I should see "75016"
@@ -104,16 +104,9 @@ Feature:
104
104
105
105
Scenario : As a parent organization, I cannot update an invalid asset
106
106
Given I am authenticated as "DT75"
107
- When I go to "/organizations/201/assets/75012 /edit"
107
+ When I go to "/organizations/201/assets/77102 /edit"
108
108
Then the response status code should be 404
109
109
110
- Scenario : As a parent organization, I can delete an asset from my organization or children organizations
111
- Given I am on "/organizations/login"
112
- When I select "DT75" from "identifier"
113
- And I fill in "password" with "covid19"
114
- And I press "Je me connecte"
115
- Then I should be on "/organizations/"
116
-
117
110
@javascript
118
111
Scenario : As a parent organization, I can delete an asset from my organization or children organizations
119
112
Given I am authenticated as "DT75"
@@ -122,7 +115,7 @@ Feature:
122
115
And I wait for "#delete-item-modal" to be visible
123
116
Then I should see "Vous êtes sur le point de supprimer le véhicule suivant et toutes ses disponibilités : VPSP - 75012"
124
117
When I press "Supprimer"
125
- Then I should be on "/organizations/203 /assets/"
118
+ Then I should be on "/organizations/201 /assets/?organizationId=203 "
126
119
And I should see "Le véhicule a été supprimé avec succès."
127
120
And I should not see "75012"
128
121
0 commit comments