github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/tests/acceptance/dc/intentions/update.feature (about) 1 @setupApplicationTest 2 Feature: dc / intentions / update: Intention Update 3 Background: 4 Given 1 datacenter model with the value "datacenter" 5 And 1 intention model from yaml 6 --- 7 ID: intention-id 8 --- 9 When I visit the intention page for yaml 10 --- 11 dc: datacenter 12 intention: intention-id 13 --- 14 Then the url should be /datacenter/intentions/intention-id 15 Scenario: Update to [Description], [Action] 16 Then I fill in with yaml 17 --- 18 Description: [Description] 19 --- 20 And I click "[value=[Action]]" 21 And I submit 22 Then a PUT request is made to "/v1/connect/intentions/intention-id?dc=datacenter" with the body from yaml 23 --- 24 Description: [Description] 25 Action: [Action] 26 --- 27 Then the url should be /datacenter/intentions 28 And "[data-notification]" has the "notification-update" class 29 And "[data-notification]" has the "success" class 30 Where: 31 ------------------------------ 32 | Description | Action | 33 | Desc | allow | 34 ------------------------------ 35 Scenario: There was an error saving the intention 36 Given the url "/v1/connect/intentions/intention-id" responds with a 500 status 37 And I submit 38 Then the url should be /datacenter/intentions/intention-id 39 Then "[data-notification]" has the "notification-update" class 40 And "[data-notification]" has the "error" class 41