mirror of https://github.com/hashicorp/consul
Browse Source
* ui: Fix typo expanded > ariaExpanded * ui: Add the things we need to test this * ui: Add tests for testing the menu closes when clicked * ui: Ensure the aria-menu closes on route changepull/7190/head
John Cowen
5 years ago
committed by
GitHub
7 changed files with 110 additions and 15 deletions
@ -0,0 +1,33 @@
|
||||
@setupApplicationTest |
||||
Feature: dc / nspaces / manage : Managing Namespaces |
||||
Scenario: |
||||
Given settings from yaml |
||||
--- |
||||
consul:token: |
||||
SecretID: secret |
||||
AccessorID: accessor |
||||
Namespace: default |
||||
--- |
||||
And 1 datacenter models from yaml |
||||
--- |
||||
- dc-1 |
||||
--- |
||||
And 6 service models |
||||
When I visit the services page for yaml |
||||
--- |
||||
dc: dc-1 |
||||
--- |
||||
Then the url should be /dc-1/services |
||||
Then I see 6 service models |
||||
# In order to test this properly you have to click around a few times |
||||
# between services and nspace management |
||||
When I click nspace on the navigation |
||||
And I click manageNspaces on the navigation |
||||
Then the url should be /dc-1/namespaces |
||||
And I don't see manageNspacesIsVisible on the navigation |
||||
When I click services on the navigation |
||||
Then the url should be /dc-1/services |
||||
When I click nspace on the navigation |
||||
And I click manageNspaces on the navigation |
||||
Then the url should be /dc-1/namespaces |
||||
And I don't see manageNspacesIsVisible on the navigation |
@ -0,0 +1,10 @@
|
||||
import steps from '../../steps'; |
||||
|
||||
// step definitions that are shared between features should be moved to the
|
||||
// tests/acceptance/steps/steps.js file
|
||||
|
||||
export default function(assert) { |
||||
return steps(assert).then('I should find a file', function() { |
||||
assert.ok(true, this.step); |
||||
}); |
||||
} |
Loading…
Reference in new issue