From 0f355844e54e4c70906b1ef5cc35a0047d666c04 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 18 Jun 2025 14:39:32 -0500 Subject: [PATCH] tests/firefox: fix bookmarks test (#7292) Not run in CI so didn't notice. We had a shared file. But, now attrset and list differ in what they can generate. Separate the expected test files. Signed-off-by: Austin Horstman --- .../firefox/profiles/bookmarks/attrset.nix | 2 +- .../firefox/profiles/bookmarks/default.nix | 2 +- .../bookmarks/expected-bookmarks-attrset.html | 25 +++++++++++++++++++ ...arks.html => expected-bookmarks-list.html} | 0 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks-attrset.html rename tests/modules/programs/firefox/profiles/bookmarks/{expected-bookmarks.html => expected-bookmarks-list.html} (100%) diff --git a/tests/modules/programs/firefox/profiles/bookmarks/attrset.nix b/tests/modules/programs/firefox/profiles/bookmarks/attrset.nix index 2168e467f..bd157a0a6 100644 --- a/tests/modules/programs/firefox/profiles/bookmarks/attrset.nix +++ b/tests/modules/programs/firefox/profiles/bookmarks/attrset.nix @@ -86,7 +86,7 @@ in assertFileContent \ $bookmarksFile \ - ${./expected-bookmarks.html} + ${./expected-bookmarks-attrset.html} ''; } ); diff --git a/tests/modules/programs/firefox/profiles/bookmarks/default.nix b/tests/modules/programs/firefox/profiles/bookmarks/default.nix index 19655368f..4fd5f88cc 100644 --- a/tests/modules/programs/firefox/profiles/bookmarks/default.nix +++ b/tests/modules/programs/firefox/profiles/bookmarks/default.nix @@ -94,7 +94,7 @@ in assertFileContent \ $bookmarksFile \ - ${./expected-bookmarks.html} + ${./expected-bookmarks-list.html} ''; } ); diff --git a/tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks-attrset.html b/tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks-attrset.html new file mode 100644 index 000000000..4f22e86cc --- /dev/null +++ b/tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks-attrset.html @@ -0,0 +1,25 @@ + + + +Bookmarks +

Bookmarks Menu

+

+

Bookmarks Toolbar

+

+

Home Manager +

+

kernel.org +

Nix sites

+

+

homepage +
wiki +

Nix sites

+

+

homepage +
wiki +

+

+

wikipedia +
diff --git a/tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks.html b/tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks-list.html similarity index 100% rename from tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks.html rename to tests/modules/programs/firefox/profiles/bookmarks/expected-bookmarks-list.html