diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2021-07-25 11:49:57 +0200 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2021-07-25 12:35:21 +0200 |
commit | 7b3c0545149cb5c67611945d6022b61047439d61 (patch) | |
tree | 2afa0b8c45f627c2c2007c51d60cd6f698d598a8 /nixos/tests/chromium.nix | |
parent | a0b7bd69ac1ff18f6cfc501700b4607b8a47bed9 (diff) |
nixos/tests/chromium: Check the version and that it's an official build
This also prints and screenshots the output of chrome://version which contains useful information. Outputs (stable, beta, ungoogled, chrome-stable, chrome-beta, chrome-dev): Chromium 92.0.4515.107 (Official Build) (64-bit) Chromium 92.0.4515.107 (Official Build) (64-bit) Chromium 91.0.4472.164 (Official Build, ungoogled-chromium) (64-bit) Google Chrome 92.0.4515.107 (Official Build) (64-bit) Google Chrome 92.0.4515.107 (Official Build) beta (64-bit) Google Chrome 93.0.4577.8 (Official Build) dev (64-bit)
Diffstat (limited to 'nixos/tests/chromium.nix')
-rw-r--r-- | nixos/tests/chromium.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix index 0c85b2d219984..4d34c85238996 100644 --- a/nixos/tests/chromium.nix +++ b/nixos/tests/chromium.nix @@ -243,6 +243,16 @@ mapAttrs (channel: chromiumPkg: makeTest rec { machine.wait_for_text("Graphics Feature Status") + with test_new_win("version_info", "chrome://version", "About Version") as clipboard: + filters = [ + r"${chromiumPkg.version} \(Official Build", + ] + if not all( + re.search(filter, clipboard) for filter in filters + ): + assert False, "Version info not correct." + + machine.shutdown() ''; }) channelMap |