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
This commit is contained in:
John Cowen 2018-09-20 10:36:30 +01:00 committed by GitHub
parent 524192c919
commit 89620b93c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 9 deletions

View File

@ -3,19 +3,26 @@ Feature: components / text-input: Text input
Background:
Given 1 datacenter model with the value "dc-1"
Scenario:
When I visit the [Page] page for yaml
When I visit the kv page for yaml
---
dc: dc-1
---
Then the url should be [Url]
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
---
[Data]
{"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
Where:
--------------------------------------------------------------------------------
| Page | Url | Data |
| kv | /dc-1/kv/create | {"additional": "hi", "value": "there"} |
| acl | /dc-1/acls/create | {"name": "hi"} |
--------------------------------------------------------------------------------

View File

@ -13,6 +13,8 @@ Feature: dc / kvs / update: KV Update
kv: [Name]
---
Then the url should be /datacenter/kv/[Name]/edit
# Turn the Code Editor off so we can fill the value easier
And I click "[name=json]"
Then I fill in with yaml
---
value: [Value]
@ -39,6 +41,8 @@ Feature: dc / kvs / update: KV Update
kv: key
---
Then the url should be /datacenter/kv/key/edit
# Turn the Code Editor off so we can fill the value easier
And I click "[name=json]"
Then I fill in with yaml
---
value: ' '
@ -59,6 +63,8 @@ Feature: dc / kvs / update: KV Update
kv: key
---
Then the url should be /datacenter/kv/key/edit
# Turn the Code Editor off so we can fill the value easier
And I click "[name=json]"
Then I fill in with yaml
---
value: ''