01Background:
02 Given The user is logged in as "brokerName4"
03 And "brokerName4" navigates to the admin portal
04
05Scenario: Add and Edit a corporate address
06 When "brokerName4" selects the 'Addresses' tab on the admin page
07 And "brokerName4" clicks the "Add Address" button
08 And "brokerName4" types "Test" into the legend "Address Line 1*" fieldset
09 And "brokerName4" types "Example Address" into the legend "Address Line 2" fieldset
10 And "brokerName4" types "London" into the legend "City*" fieldset
11 And "brokerName4" types "Greater London" into the legend "County / Province / State" fieldset
12 And "brokerName4" types "EC2N 4BQ" into the legend "Postcode / Zip*" fieldset
13 And "brokerName4" types "United Kingdom" into the legend "Country*" fieldset
14 And "brokerName4" types "Any Contract Name" into the legend "Contact Name" fieldset
15 And "brokerName4" types "mr.tester1@testing.com" into the legend "Contact Email" fieldset
16 And "brokerName4" selects option "GB (+44)" and types "3456 789012" into the "Contact Number" fieldset
17 And "brokerName4" clicks the "Confirm" button
18 And "brokerName4" clicks the "Save" button
19 And "brokerName4" must see the "Changes Summary" admin modal
20 And "brokerName4" clicks the "Confirm" button
21 When "brokerName4" selects the 'Addresses' tab on the admin page
22 And "brokerName4" clicks the Edit button of the "Any Contract Name" address card
23 And "brokerName4" types "3 Any Street" into the legend "Address Line 1*" fieldset
24 And "brokerName4" types "4 Any Borough" into the legend "Address Line 2" fieldset
25 And "brokerName4" types "Birmingham" into the legend "City*" fieldset
26 And "brokerName4" types "Birmingham" into the legend "County / Province / State" fieldset
27 And "brokerName4" types "ED1 2EV" into the legend "Postcode / Zip*" fieldset
28 And "brokerName4" types "United Kingdom" into the legend "Country*" fieldset
29 And "brokerName4" types "Example Contact" into the legend "Contact Name" fieldset
30 And "brokerName4" types "mr.tester3@testing.com" into the legend "Contact Email" fieldset
31 And "brokerName4" selects option "GB (+44)" and types "3134 789023" into the "Contact Number" fieldset
32 And "brokerName4" clicks the "Confirm" button
33 And "brokerName4" clicks the "Save" button
34 And "brokerName4" must see the "Changes Summary" admin modal
35 And "brokerName4" clicks the "Confirm" button
36 And "brokerName4" clicks the Edit button of the "Example Contact" address card
37 And "brokerName4" must see the text "3 Any Street" into the legend "Address Line 1*" fieldset
38 And "brokerName4" must see the text "4 Any Borough" into the legend "Address Line 2" fieldset
39 And "brokerName4" must see the text "Birmingham" into the legend "City*" fieldset
40 And "brokerName4" must see the text "Birmingham" into the legend "County / Province / State" fieldset
41 And "brokerName4" must see the text "ED1 2EV" into the legend "Postcode / Zip*" fieldset
42 And "brokerName4" must see the text "United Kingdom" into the legend "Country*" fieldset
43 And "brokerName4" must see the text "Example Contact" into the legend "Contact Name" fieldset
44 And "brokerName4" must see the text "mr.tester3@testing.com" into the legend "Contact Email" fieldset
45 And "brokerName4" must see the text "GB (+44)" in the "Contact Number" dropdown
46 And "brokerName4" must see the text "3134 789023" in the "Contact Number" input fieldset