open-consul/ui-v2/tests/acceptance/components/text-input.feature
John Cowen da912827c9
ui: Turn off the code editor whilst making an edit during testing (#4668)
Having the code editor on removes the text area from the DOM, making it
more difficult to enter text in the text editor during testing. This
turns the code editor off whilst making edits during testing.

No changes to UI code
2018-09-20 10:36:30 +01:00

29 lines
690 B
Gherkin

@setupApplicationTest
Feature: components / text-input: Text input
Background:
Given 1 datacenter model with the value "dc-1"
Scenario:
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:
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