Skip to content

Commit

Permalink
ui: Move acceptance tests for deleting from detail page into own...
Browse files Browse the repository at this point in the history
..test Scenario. This means that it doesn't use the mock object form the
previous 'delete from listing' test
  • Loading branch information
John Cowen committed Aug 23, 2019
1 parent 2dc544a commit a6ade42
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions ui-v2/tests/acceptance/deleting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ Feature: deleting: Deleting items with confirmations, success and error notifica
Then a [Method] request is made to "[URL]"
And "[data-notification]" has the "notification-delete" class
And "[data-notification]" has the "success" class
When I visit the [Edit] page for yaml
---
dc: datacenter
[Slug]
---
Given the url "[URL]" responds with a 500 status
And I click delete
And I click confirmDelete
And "[data-notification]" has the "notification-delete" class
And "[data-notification]" has the "error" class
Where:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Edit | Listing | Method | URL | Data | Slug |
Expand Down Expand Up @@ -60,12 +50,14 @@ Feature: deleting: Deleting items with confirmations, success and error notifica
And "[data-notification]" has the "notification-delete" class
And "[data-notification]" has the "error" class
Where:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Model | Method | URL | Data | Slug |
# | acl | PUT | /v1/acl/destroy/something?dc=datacenter | {"Name": "something", "ID": "something"} | acl: something |
| kv | DELETE | /v1/kv/key-name?dc=datacenter | ["key-name"] | kv: key-name |
| intention | DELETE | /v1/connect/intentions/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=datacenter | {"SourceName": "name", "ID": "ee52203d-989f-4f7a-ab5a-2bef004164ca"} | intention: ee52203d-989f-4f7a-ab5a-2bef004164ca |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------
| Model | Method | URL | Slug |
# | acl | PUT | /v1/acl/destroy/something?dc=datacenter | acl: something |
| kv | DELETE | /v1/kv/key-name?dc=datacenter | kv: key-name |
| intention | DELETE | /v1/connect/intentions/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=datacenter | intention: ee52203d-989f-4f7a-ab5a-2bef004164ca |
| token | DELETE | /v1/acl/token/001fda31-194e-4ff1-a5ec-589abf2cafd0?dc=datacenter | token: 001fda31-194e-4ff1-a5ec-589abf2cafd0 |
| policy | DELETE | /v1/acl/policy/1981f51d-301a-497b-89a0-05112ef02b4b?dc=datacenter | policy: 1981f51d-301a-497b-89a0-05112ef02b4b |
----------------------------------------------------------------------------------------------------------------------------------------------------
@ignore
Scenario: Sort out the wide tables ^
Then ok

0 comments on commit a6ade42

Please sign in to comment.