From 2c71aae678c03a39c2542e136b87bd040ae1b3cb Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 17 Apr 2025 09:38:31 -0500 Subject: [PATCH] tests/firefox: validate folder linking Make sure we're linking all folder contents when a directory is provided. --- .../firefox/profiles/userchrome/chrome/extraFile.css | 3 +++ .../programs/firefox/profiles/userchrome/default.nix | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/modules/programs/firefox/profiles/userchrome/chrome/extraFile.css diff --git a/tests/modules/programs/firefox/profiles/userchrome/chrome/extraFile.css b/tests/modules/programs/firefox/profiles/userchrome/chrome/extraFile.css new file mode 100644 index 000000000..17e84dfe4 --- /dev/null +++ b/tests/modules/programs/firefox/profiles/userchrome/chrome/extraFile.css @@ -0,0 +1,3 @@ +/* +* A file that might be imported from the main css +*/ diff --git a/tests/modules/programs/firefox/profiles/userchrome/default.nix b/tests/modules/programs/firefox/profiles/userchrome/default.nix index f1b1482b5..113a017af 100644 --- a/tests/modules/programs/firefox/profiles/userchrome/default.nix +++ b/tests/modules/programs/firefox/profiles/userchrome/default.nix @@ -48,14 +48,20 @@ in assertDirectoryExists home-files/${cfg.configPath}/basic + assertFileNotExists \ + home-files/${cfg.configPath}/lines/chrome/extraFile.css assertFileContent \ home-files/${cfg.configPath}/lines/chrome/userChrome.css \ ${./chrome/userChrome.css} + assertFileNotExists \ + home-files/${cfg.configPath}/path/chrome/extraFile.css assertFileContent \ home-files/${cfg.configPath}/path/chrome/userChrome.css \ ${./chrome/userChrome.css} + assertFileExists \ + home-files/${cfg.configPath}/folder/chrome/extraFile.css assertFileContent \ home-files/${cfg.configPath}/folder/chrome/userChrome.css \ ${./chrome/userChrome.css}