c98130cc08
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target
56 lines
3.2 KiB
Gherkin
56 lines
3.2 KiB
Gherkin
@setupApplicationTest
|
|
Feature: deleting: Deleting items with confirmations, success and error notifications
|
|
In order to delete items in consul
|
|
As a user
|
|
I should be able to delete items, get confirmation or a error notification that it has or has not been deleted
|
|
Background:
|
|
Given 1 datacenter model with the value "datacenter"
|
|
Scenario: Deleting a [Edit] model from the [Listing] listing page
|
|
Given 1 [Edit] model from json
|
|
---
|
|
[Data]
|
|
---
|
|
When I visit the [Listing] page for yaml
|
|
---
|
|
dc: datacenter
|
|
---
|
|
And I click actions on the [Listing]
|
|
And I click delete on the [Listing]
|
|
And I click confirmDelete on the [Listing]
|
|
Then a [Method] request was made to "[URL]"
|
|
And "[data-notification]" has the "notification-delete" class
|
|
And "[data-notification]" has the "success" class
|
|
Where:
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
| Edit | Listing | Method | URL | Data |
|
|
| token | tokens | DELETE | /v1/acl/token/001fda31-194e-4ff1-a5ec-589abf2cafd0?dc=datacenter&ns=@!namespace | {"AccessorID": "001fda31-194e-4ff1-a5ec-589abf2cafd0"} |
|
|
# | acl | acls | PUT | /v1/acl/destroy/something?dc=datacenter | {"Name": "something", "ID": "something"} |
|
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
Scenario: Deleting a [Model] from the [Model] detail page
|
|
When I visit the [Model] page for yaml
|
|
---
|
|
dc: datacenter
|
|
[Slug]
|
|
---
|
|
And I click delete
|
|
And I click confirmDelete
|
|
Then a [Method] request was made to "[URL]"
|
|
And "[data-notification]" has the "notification-delete" class
|
|
And "[data-notification]" has the "success" class
|
|
When I visit the [Model] 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:
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
| Model | Method | URL | Slug |
|
|
| token | DELETE | /v1/acl/token/001fda31-194e-4ff1-a5ec-589abf2cafd0?dc=datacenter&ns=@!namespace | token: 001fda31-194e-4ff1-a5ec-589abf2cafd0 |
|
|
# | acl | PUT | /v1/acl/destroy/something?dc=datacenter | acl: something |
|
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------
|