github.com/rposudnevskiy/consul@v1.4.5/ui-v2/tests/acceptance/dc/kvs/sessions/invalidate.feature (about)

     1  @setupApplicationTest
     2  Feature: dc / kvs / sessions / invalidate: Invalidate Lock Sessions
     3    In order to invalidate a lock session
     4    As a user
     5    I should be able to invalidate a lock session by clicking a button and confirming
     6    Background:
     7      Given 1 datacenter model with the value "datacenter"
     8      And 1 kv model from yaml
     9      ---
    10        Key: key
    11      ---
    12      When I visit the kv page for yaml
    13      ---
    14        dc: datacenter
    15        kv: key
    16      ---
    17      Then the url should be /datacenter/kv/key/edit
    18  
    19    Scenario: Invalidating the lock session
    20      And I click delete on the session
    21      And I click confirmDelete on the session
    22      Then the last PUT request was made to "/v1/session/destroy/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=datacenter"
    23      Then the url should be /datacenter/kv/key/edit
    24      And "[data-notification]" has the "notification-delete" class
    25      And "[data-notification]" has the "success" class
    26    Scenario: Invalidating a lock session and receiving an error
    27      Given the url "/v1/session/destroy/ee52203d-989f-4f7a-ab5a-2bef004164ca?dc=datacenter" responds with a 500 status
    28      And I click delete on the session
    29      And I click confirmDelete on the session
    30      Then the url should be /datacenter/kv/key/edit
    31      And "[data-notification]" has the "notification-delete" class
    32      And "[data-notification]" has the "error" class