github.com/DerekStrickland/consul@v1.4.5/ui-v2/tests/acceptance/dc/acls/tokens/policies/add-new.feature (about) 1 @setupApplicationTest 2 Feature: dc / acls / tokens / policies: Add new 3 Scenario: 4 Given 1 datacenter model with the value "datacenter" 5 And 1 token model from yaml 6 --- 7 AccessorID: key 8 Description: The Description 9 Policies: ~ 10 --- 11 When I visit the token page for yaml 12 --- 13 dc: datacenter 14 token: key 15 --- 16 Then the url should be /datacenter/acls/tokens/key 17 And I click newPolicy 18 Then I fill in the policy form with yaml 19 --- 20 Name: New-Policy 21 Description: New Description 22 Rules: key {} 23 --- 24 And I click submit on the policyForm 25 Then the last PUT request was made to "/v1/acl/policy?dc=datacenter" with the body from yaml 26 --- 27 Name: New-Policy 28 Description: New Description 29 Rules: key {} 30 --- 31 And I submit 32 Then a PUT request is made to "/v1/acl/token/key?dc=datacenter" with the body from yaml 33 --- 34 Description: The Description 35 Policies: 36 - Name: New-Policy 37 ID: ee52203d-989f-4f7a-ab5a-2bef004164ca-1 38 --- 39 Then the url should be /datacenter/acls/tokens 40 And "[data-notification]" has the "notification-update" class 41 And "[data-notification]" has the "success" class 42 @pending: 43 Scenario: Click the cancel form 44 Then ok 45 # And I click cancel on the policyForm