diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2021-07-25 12:38:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 12:38:33 +0200 |
commit | dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833 (patch) | |
tree | 2afa0b8c45f627c2c2007c51d60cd6f698d598a8 /nixos | |
parent | a0b7bd69ac1ff18f6cfc501700b4607b8a47bed9 (diff) | |
parent | 7b3c0545149cb5c67611945d6022b61047439d61 (diff) | |
download | nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.tar nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.tar.gz nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.tar.bz2 nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.tar.lz nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.tar.xz nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.tar.zst nixpkgs-dcc6c7dfb10dd90a4f13a9ad56add2cbfa09c833.zip |
Merge pull request #131455 from primeos/nixos-tests-chromium
nixos/tests/chromium: Check the version and that it's an official build
Diffstat (limited to 'nixos')
-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 0c85b2d2199..4d34c852389 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 |