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)
This commit is contained in:
parent
8b75191bea
commit
6dbb8d5098
|
@ -243,6 +243,16 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
|
||||||
machine.wait_for_text("Graphics Feature Status")
|
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()
|
machine.shutdown()
|
||||||
'';
|
'';
|
||||||
}) channelMap
|
}) channelMap
|
||||||
|
|
Loading…
Reference in New Issue