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 displayed settings should contain 11 elements
11 And the list of configuration atoms should contain 12 elements
12 And the list box should have 22 children including separators
13 And there should be 1 active setting
14 And there should be 1 setting with a configuration button
15 And every active setting's atoms should be enabled
16 And every inactive setting's atoms should be disabled
18 Scenario: toggling an inactive setting on
19 Given I have a Configuration object
20 And I have a Step::Configure object
21 When I toggle an inactive setting on
22 Then there should be 2 active settings
23 And every active setting's atoms should be enabled
24 And every inactive setting's atoms should be disabled
26 Scenario: toggling an active setting off
27 Given I have a Configuration object
28 And I have a Step::Configure object
29 When I toggle an active setting off
30 Then there should be 0 active setting
31 And every active setting's atoms should be enabled
32 And every inactive setting's atoms should be disabled
34 Scenario: click save button
35 Given I have a Configuration object
36 And I have a Step::Configure object
37 When I click the save button
38 Then the file should contain 1 line
40 Scenario: toggle on inactive setting that maps to 1 path and click save button
41 Given I have a Configuration object
42 And I have a Step::Configure object
43 When I toggle the "Thunderbird" inactive setting on
44 And I click the save button
45 Then the file should contain 2 lines
47 Scenario: toggle on inactive setting that maps to 2 paths and click save button
48 Given I have a Configuration object
49 And I have a Step::Configure object
50 When I toggle the "AdditionalSoftware" inactive setting on
51 And I click the save button
52 Then the file should contain 3 lines
54 Scenario: toggle active setting off and click save button
55 Given I have a Configuration object
56 And I have a Step::Configure object
57 When I toggle the "PersonalData" active setting off
58 And I click the save button
59 Then the file should contain 0 line