Skip to content

Commit

Permalink
mock date in pixeltests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus committed Dec 17, 2024
1 parent ec24047 commit 8aa5a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ class TestFiles(testlib.MachineCase):
b.wait_not_present(".drag-drop-upload")
drag_file_event(".fileview-wrapper", 'dragenter')
b.wait_visible(".drag-drop-upload")
b.assert_pixels(".files-card", "drag-drop-upload-dropzone")
b.assert_pixels(".files-card", "drag-drop-upload-dropzone", mock={".item-date": "Jun 19, 2024, 11:30 AM"})
drag_file_event(".fileview-wrapper", 'drop', 'drag-drop-testfile.txt')
b.wait_in_text(".pf-v5-c-alert__title", "File uploaded")
b.click(".pf-v5-c-alert__action button")
Expand Down Expand Up @@ -2438,7 +2438,7 @@ class TestFiles(testlib.MachineCase):
b.wait_not_present(".drag-drop-upload")
drag_file_event(".fileview-wrapper", 'dragenter')
b.wait_visible(".drag-drop-upload-blocked")
b.assert_pixels(".files-card", "drag-drop-upload-dropzone-blocked")
b.assert_pixels(".files-card", "drag-drop-upload-dropzone-blocked", mock={".item-date": "Jun 19, 2024, 11:30 AM"})
drag_file_event(".fileview-wrapper", 'dragleave')
b.wait_not_present(".drag-drop-upload-blocked")
# Dropping the file does nothing
Expand Down

0 comments on commit 8aa5a53

Please sign in to comment.