mirror of
https://github.com/status-im/consul.git
synced 2025-01-15 08:14:54 +00:00
6589cbbd0d
* 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
45 lines
1.4 KiB
Gherkin
45 lines
1.4 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / intentions / navigation
|
|
Background:
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 3 intention models from yaml
|
|
---
|
|
- ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f0
|
|
Action: allow
|
|
Meta: ~
|
|
- ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f1
|
|
Action: deny
|
|
Meta: ~
|
|
- ID: 0755b72bd-f5ab-4c92-90cc-bed0e7d8e9f2
|
|
Action: deny
|
|
Meta: ~
|
|
---
|
|
Scenario: Clicking a intention in the listing and back again
|
|
When I visit the intentions page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/intentions
|
|
And the title should be "Intentions - Consul"
|
|
Then I see 3 intention models
|
|
Given 1 intention model from yaml
|
|
---
|
|
ID: 755b72bd-f5ab-4c92-90cc-bed0e7d8e9f0
|
|
---
|
|
When I click intention on the intentions
|
|
Then a GET request was made to "/v1/internal/ui/services?dc=dc-1&ns=*"
|
|
And I click "[data-test-back]"
|
|
Then the url should be /dc-1/intentions
|
|
Scenario: Clicking the create button and back again
|
|
When I visit the intentions page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/intentions
|
|
And the title should be "Intentions - Consul"
|
|
Then I see 3 intention models
|
|
When I click create
|
|
Then the url should be /dc-1/intentions/create
|
|
And I click "[data-test-back]"
|
|
Then the url should be /dc-1/intentions
|