firefox: add test for duplicate profile id assertion
This commit is contained in:
parent
f033205b25
commit
78125bc681
|
@ -2,4 +2,5 @@
|
||||||
firefox-profile-settings = ./profile-settings.nix;
|
firefox-profile-settings = ./profile-settings.nix;
|
||||||
firefox-state-version-19_09 = ./state-version-19_09.nix;
|
firefox-state-version-19_09 = ./state-version-19_09.nix;
|
||||||
firefox-deprecated-native-messenger = ./deprecated-native-messenger.nix;
|
firefox-deprecated-native-messenger = ./deprecated-native-messenger.nix;
|
||||||
|
firefox-duplicate-profile-ids = ./duplicate-profile-ids.nix;
|
||||||
}
|
}
|
||||||
|
|
23
tests/modules/programs/firefox/duplicate-profile-ids.nix
Normal file
23
tests/modules/programs/firefox/duplicate-profile-ids.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ ./setup-firefox-mock-overlay.nix ];
|
||||||
|
|
||||||
|
config = lib.mkIf config.test.enableBig {
|
||||||
|
test.asserts.assertions.expected = [''
|
||||||
|
Must not have Firefox profiles with duplicate IDs but
|
||||||
|
- ID 1 is used by first, second''];
|
||||||
|
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
profiles = {
|
||||||
|
first = {
|
||||||
|
isDefault = true;
|
||||||
|
id = 1;
|
||||||
|
};
|
||||||
|
second = { id = 1; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue