mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
f0be55df86
* Update empty-state copy throughout app Update empty-states throughout the app to only include mentions of ACLs if the user has ACLs enabled. * Update peers empty state copy Flip the empty state copy logic for peers. Small typo fixes on other empty states. * Update Node empty state with docs * Update intentions empty state Make ACL copy dependent on if acls are enabled. * Update Nodes empty state learn copy * Fix binding rule copy key
55 lines
1.5 KiB
Gherkin
55 lines
1.5 KiB
Gherkin
@setupApplicationTest
|
|
Feature: dc / peers / index: Peers List
|
|
Background:
|
|
And 1 datacenter model with the value "dc-1"
|
|
And 3 peer models from yaml
|
|
---
|
|
- Name: z-peer
|
|
- Name: b-peer
|
|
- Name: a-peer
|
|
---
|
|
When I visit the peers page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then the url should be /dc-1/peers
|
|
And the title should be "Peers - Consul"
|
|
Scenario: Viewing peers
|
|
Then I see 3 peer models
|
|
|
|
Scenario: Sorting peers
|
|
When I click selected on the sort
|
|
# alpha
|
|
When I click options.2.button on the sort
|
|
Then I see name on the peers vertically like yaml
|
|
---
|
|
- a-peer
|
|
- b-peer
|
|
- z-peer
|
|
---
|
|
Scenario: Searching peers
|
|
Then I fill in with yaml
|
|
---
|
|
s: a-peer
|
|
---
|
|
And I see 1 peer model
|
|
And I see 1 peer model with the name "a-peer"
|
|
Scenario: Empty state searching peers
|
|
Then I fill in with yaml
|
|
---
|
|
s: no-match
|
|
---
|
|
And I see 0 peer model
|
|
Then I see the text "No peers found" in ".empty-state h2"
|
|
Then I see the text "No peers were found matching that search, or you may not have the peering:read permissions to access this view." in ".empty-state p"
|
|
And I see the "[data-test-empty-state-login]" element
|
|
Scenario: Empty state searching peers with ACLs disabled
|
|
And ACLs are disabled
|
|
Then I fill in with yaml
|
|
---
|
|
s: no-match
|
|
---
|
|
And I see 0 peer model
|
|
Then I see the text "No peers found" in ".empty-state h2"
|
|
Then I see the text "No peers were found matching that search." in ".empty-state p"
|