mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #131455 from primeos/nixos-tests-chromium
nixos/tests/chromium: Check the version and that it's an official build
This commit is contained in:
commit
dcc6c7dfb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user