open-consul/ui-v2/tests/acceptance/components/text-input.feature
John Cowen 7577f6bfca ui: Test Improvements (#7854)
* ui: Combine all "see/don't see" steps into one step

* Fix up broken tests

* Add some test meta data/titles

* Test out proxies in the service listing

* Remove comments
2020-05-12 17:14:57 +00:00

29 lines
707 B
Gherkin

@setupApplicationTest
Feature: components / text-input: Text input
Background:
Given 1 datacenter model with the value "dc-1"
Scenario: KV page
When I visit the kv page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/kv/create
# Turn the Code Editor off so we can fill the value easier
And I click "[name=json]"
Then I fill in with json
---
{"additional": "hi", "value": "there"}
---
Then I see submitIsEnabled
Scenario: ACL page
When I visit the acl page for yaml
---
dc: dc-1
---
Then the url should be /dc-1/acls/create
Then I fill in with json
---
{"name": "hi"}
---
Then I see submitIsEnabled