From f4f696c8c2d0145faebeb93a16ff8d3df687df19 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Thu, 19 Dec 2024 12:24:39 +0100 Subject: [PATCH] Follow up fixes for commit 45e776 commit 45e7763e68fad93e305d8aaa1d809f490c9e8941 Author: Martin Pitt Date: Tue Dec 10 15:50:42 2024 +0100 test: Use real mouse events with Chromium in the shell This created some pixel tests differences, because tests now focused on some elements, they did not before. --- test/check-review | 3 +++ test/check-storage-encryption | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/test/check-review b/test/check-review index 36341e21f8..b875021f2f 100755 --- a/test/check-review +++ b/test/check-review @@ -74,6 +74,9 @@ class TestReview(VirtInstallMachineCase): r.check_disk_row("vda", "/boot", "vda2", "1.07 GB", True, "xfs", is_encrypted=False) r.check_disk_row("vda", "/", "vda3, LVM", "15.0 GB", True, "xfs", is_encrypted=True) + # move the mouse away to avoid highlighting any UI element (pixel ref does not expect that) + b.mouse("#app", "mouseenter") + # Pixel test the review step with encrypted disk b.assert_pixels( "#app", diff --git a/test/check-storage-encryption b/test/check-storage-encryption index edcee5e62c..bbff7b9c0e 100755 --- a/test/check-storage-encryption +++ b/test/check-storage-encryption @@ -50,6 +50,9 @@ class TestStorageEncryption(VirtInstallMachineCase, StorageHelpers): s.set_encryption_selected(False) i.check_next_disabled(False) + # move the mouse away to avoid highlighting any UI element (pixel ref does not expect that) + b.mouse("#app", "mouseenter") + b.assert_pixels( "#app", "storage-step-encrypt", @@ -60,6 +63,9 @@ class TestStorageEncryption(VirtInstallMachineCase, StorageHelpers): encrypt = True s.set_encryption_selected(encrypt) + # move the mouse away to avoid highlighting any UI element (pixel ref does not expect that) + b.mouse("#app", "mouseenter") + # Disk Encryption / password screen b.assert_pixels( "#app",