1 Feature: configure step
3 in order to keep some persistent files,
4 I want to configure Tails persistence feature.
6 Scenario: build a Step::Configure object
7 Given I have a Configuration object
8 And I have a Step::Configure object
9 Then I should have a defined Step::Configure object
10 And the list of item buttons should contain 13 elements
11 And the list of configuration atoms should contain 13 elements
12 And the list box should have 13 children
13 And there should be 1 active buttons
14 And every active button's atom should be enabled
15 And every inactive button's atom should be disabled
16 And every active button's checked icon should be displayed
17 And every inactive button's checked icon should be hidden
19 Scenario: toggling an inactive button on
20 Given I have a Configuration object
21 And I have a Step::Configure object
22 When I toggle an inactive button on
23 Then there should be 2 active buttons
24 And every active button's atom should be enabled
25 And every inactive button's atom should be disabled
26 And every active button's checked icon should be displayed
27 And every inactive button's checked icon should be hidden
29 Scenario: toggling an active button off
30 Given I have a Configuration object
31 And I have a Step::Configure object
32 When I toggle an active button off
33 Then there should be 0 active button
34 And every active button's atom should be enabled
35 And every inactive button's atom should be disabled
37 Scenario: click save button
38 Given I have a Configuration object
39 And I have a Step::Configure object
40 When I click the save button
41 Then the file should contain 1 line
43 Scenario: toggle inactive button on and click save button
44 Given I have a Configuration object
45 And I have a Step::Configure object
46 When I toggle an inactive button on
47 And I click the save button
48 Then the file should contain 2 lines
50 Scenario: toggle active button off and click save button
51 Given I have a Configuration object
52 And I have a Step::Configure object
53 When I toggle an active button off
54 And I click the save button
55 Then the file should contain 0 line