Skip to content

Commit

Permalink
Follow up fixes for commit 45e776
Browse files Browse the repository at this point in the history
commit 45e7763e68fad93e305d8aaa1d809f490c9e8941

Author: Martin Pitt <[email protected]>
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.
  • Loading branch information
KKoukiou committed Dec 19, 2024
1 parent 3a29fe4 commit f4f696c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/check-review
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions test/check-storage-encryption
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit f4f696c

Please sign in to comment.