about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2022-11-08 00:21:13 +0100
committerGitHub <noreply@github.com>2022-11-08 00:21:13 +0100
commitacf257739b65fd8080f627f6276f5cf56ef9ce78 (patch)
treeedc796a455aeecdc627c960bda9bb7e809ec04d3 /nixos
parent46d7d19c1ba11ff37bf3f2c6b5a096f02120d48c (diff)
parent673f7d025b5634682a8b009e149a2c6ea9c5636f (diff)
Merge pull request #199902 from primeos/nixos-tests-chromium
nixos/tests/chromium: Re-enable the chrome://gpu test for M107
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/chromium.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix
index 618633935213e..cdfdcc9bcdd2d 100644
--- a/nixos/tests/chromium.nix
+++ b/nixos/tests/chromium.nix
@@ -166,6 +166,8 @@ mapAttrs (channel: chromiumPkg: makeTest {
         clipboard = machine.succeed(
             ru("${pkgs.xclip}/bin/xclip -o")
         )
+        if url == "chrome://gpu":
+            clipboard = ""  # TODO: We cannot copy the text via Ctrl+a
         print(f"{description} window content:\n{clipboard}")
         with machine.nested(description):
             yield clipboard
@@ -246,11 +248,10 @@ mapAttrs (channel: chromiumPkg: makeTest {
         machine.screenshot("after_copy_from_chromium")
 
 
-    if major_version < "107":
-        # TODO: Fix the chrome://gpu test for M107+
-        with test_new_win("gpu_info", "chrome://gpu", "chrome://gpu"):
-            # To check the text rendering (catches regressions like #131074):
-            machine.wait_for_text("Graphics Feature Status")
+    with test_new_win("gpu_info", "chrome://gpu", "GPU Internals"):
+        # To check the text rendering (catches regressions like #131074):
+        machine.wait_for_text("Graphics Feature Status")
+        # TODO: Fix copying all of the text to the clipboard
 
 
     with test_new_win("version_info", "chrome://version", "About Version") as clipboard: