b3eafef6b0
* Add sorting to Intentions with tests * Skip Intentions url back test * Create comparator for intention and implement in template * Add a intentions navigation feature test
43 lines
977 B
Gherkin
43 lines
977 B
Gherkin
@setupApplicationTest
|
|
@notNamespaceable
|
|
Feature: dc / intentions / sorting
|
|
Scenario: Sorting Intentions
|
|
Given 1 datacenter model with the value "dc-1"
|
|
And 6 intention models from yaml
|
|
---
|
|
- Action: "allow"
|
|
- Action: "allow"
|
|
- Action: "deny"
|
|
- Action: "deny"
|
|
- Action: "allow"
|
|
- Action: "deny"
|
|
---
|
|
When I visit the intentions page for yaml
|
|
---
|
|
dc: dc-1
|
|
---
|
|
Then I see 6 intention models
|
|
When I click selected on the sort
|
|
When I click options.1.button on the sort
|
|
Then I see action on the intentions vertically like yaml
|
|
---
|
|
- "deny"
|
|
- "deny"
|
|
- "deny"
|
|
- "allow"
|
|
- "allow"
|
|
- "allow"
|
|
---
|
|
When I click selected on the sort
|
|
When I click options.0.button on the sort
|
|
Then I see action on the intentions vertically like yaml
|
|
---
|
|
- "allow"
|
|
- "allow"
|
|
- "allow"
|
|
- "deny"
|
|
- "deny"
|
|
- "deny"
|
|
---
|
|
|