Commit ed5bc690 authored by intrigeri's avatar intrigeri
Browse files

Merge branch 'test/update-persistence-setup-test-suite-wrt-new-greeter-preset' into 'stable'

Update the persistence-setup test suite: we added a new preset for Welcome Screen settings

See merge request !81
parents 02a8b948 77c34596
......@@ -50,7 +50,7 @@ Feature: configuration model
Scenario: merge empty file with default presets
Given the file is empty
When I merge the presets and the file
Then the list of configuration atoms should contain 12 elements
Then the list of configuration atoms should contain 13 elements
And there should be 1 enabled configuration line
Scenario: merge non-empty file with enabled-by-default preset in
......@@ -60,7 +60,7 @@ Feature: configuration model
/home/amnesia/.myapp source=myapp
"""
When I merge the presets and the file
Then the list of configuration atoms should contain 13 elements
Then the list of configuration atoms should contain 14 elements
And there should be 2 enabled configuration lines
Scenario: merge non-empty file with disabled-by-default preset in
......@@ -70,5 +70,5 @@ Feature: configuration model
/home/amnesia/.myapp source=myapp
"""
When I merge the presets and the file
Then the list of configuration atoms should contain 13 elements
Then the list of configuration atoms should contain 14 elements
And there should be 3 enabled configuration lines
......@@ -7,9 +7,9 @@ Feature: configure step
Given I have a Configuration object
And I have a Step::Configure object
Then I should have a defined Step::Configure object
And the list of displayed settings should contain 11 elements
And the list of configuration atoms should contain 12 elements
And the list box should have 22 children including separators
And the list of displayed settings should contain 12 elements
And the list of configuration atoms should contain 13 elements
And the list box should have 24 children including separators
And there should be 1 active setting
And there should be 1 setting with a configuration button
And every active setting's atoms should be enabled
......
......@@ -34,8 +34,8 @@ describe 'A configuration object' => sub {
it 'has a GnuPG atom' => sub {
is(scalar(grep { $_->destination eq '/home/amnesia/.gnupg' } $configuration->all_atoms), 1);
};
it 'has 12 atoms' => sub {
is(scalar($configuration->all_atoms), 12);
it 'has 13 atoms' => sub {
is(scalar($configuration->all_atoms), 13);
};
it 'has 1 enabled atom' => sub {
is(scalar($configuration->all_enabled_atoms), 1);
......@@ -59,8 +59,8 @@ EOF
config_file_path => $config_filename
);
};
it 'has 13 atoms' => sub {
is(scalar($configuration->all_atoms), 13);
it 'has 14 atoms' => sub {
is(scalar($configuration->all_atoms), 14);
};
it 'has 4 enabled atoms' => sub {
is(scalar($configuration->all_enabled_atoms), 4);
......
......@@ -17,8 +17,8 @@ describe 'A configuration presets object' => sub {
it 'can return all presets' => sub {
ok($presets->all);
};
it 'has 11 elements' => sub {
is(scalar($presets->all), 11);
it 'has 12 elements' => sub {
is(scalar($presets->all), 12);
};
it 'has a GnuPG preset' => sub {
is(scalar(grep { $_->{name} eq 'GnuPG' } $presets->all), 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment