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 13:04:52 +0200 |
| commit | 6dbb8d5098f78e8cb4b810172ef95e78dea16504 (patch) | |
| tree | 30bdb2e4cb529c6fd291107bd0285b1ccc43d474 | |
| parent | chromium: Fix the Ozone/Wayland support (diff) | |
| download | nixpkgs-6dbb8d5098f78e8cb4b810172ef95e78dea16504.tar.gz | |
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)
(cherry picked from commit 7b3c0545149cb5c67611945d6022b61047439d61)
| -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 0c85b2d21998..4d34c8523899 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 |
