2022-09-12 10:22:06 +00:00
|
|
|
@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
|
2022-09-20 14:34:08 +00:00
|
|
|
- Name: b-peer
|
|
|
|
- Name: a-peer
|
2022-09-12 10:22:06 +00:00
|
|
|
---
|
|
|
|
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"
|
2022-09-20 14:34:08 +00:00
|
|
|
Scenario: Viewing peers
|
2022-09-12 10:22:06 +00:00
|
|
|
Then I see 3 peer models
|
|
|
|
|
2022-09-20 14:34:08 +00:00
|
|
|
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"
|
|
|
|
|