github.com/DerekStrickland/consul@v1.4.5/ui-v2/tests/acceptance/components/intention-filter.feature (about)

     1  @setupApplicationTest
     2  Feature: components / intention filter: Intention Filter
     3    In order to find the intention I'm looking for easier
     4    As a user
     5    I should be able to filter by 'policy' (allow/deny) and freetext search tokens by source and destination
     6    Scenario: Filtering [Model]
     7      Given 1 datacenter model with the value "dc-1"
     8      And 2 [Model] models
     9      When I visit the [Page] page for yaml
    10      ---
    11        dc: dc-1
    12      ---
    13      Then the url should be [Url]
    14  
    15      Then I see 2 [Model] models
    16      And I see allIsSelected on the filter
    17  
    18      When I click allow on the filter
    19      Then I see allowIsSelected on the filter
    20      And I see 1 [Model] model
    21      And I see 1 [Model] model with the action "allow"
    22  
    23      When I click deny on the filter
    24      Then I see denyIsSelected on the filter
    25      And I see 1 [Model] model
    26      And I see 1 [Model] model with the action "deny"
    27  
    28      When I click all on the filter
    29      Then I see 2 [Model] models
    30      Then I see allIsSelected on the filter
    31      Then I fill in with yaml
    32      ---
    33      s: alarm
    34      ---
    35      And I see 1 [Model] model
    36      And I see 1 [Model] model with the source "alarm"
    37      Then I fill in with yaml
    38      ---
    39      s: feed
    40      ---
    41      And I see 1 [Model] model
    42      And I see 1 [Model] model with the destination "feed"
    43      Then I fill in with yaml
    44      ---
    45      s: transmitter
    46      ---
    47      And I see 2 [Model] models
    48      And I see 1 [Model] model with the source "transmitter"
    49      And I see 1 [Model] model with the destination "transmitter"
    50  
    51    Where:
    52      ---------------------------------------------
    53      | Model     | Page       | Url              |
    54      | intention | intentions | /dc-1/intentions |
    55      ---------------------------------------------