Skip to content

Commit

Permalink
test: Longer wait_delay for some metrics pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Sep 7, 2023
1 parent 7bc002e commit 339f7fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/verify/check-metrics
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,12 @@ class TestHistoryMetrics(testlib.MachineCase):
b.wait_in_text("#metrics-hour-1597662000000:not(.metrics-hour-compressed) .metrics-events-hour-header-expanded .spikes_count", "3 spikes")
b.wait_in_text("#metrics-hour-1597662000000:not(.metrics-hour-compressed) .metrics-events-hour-header-expanded .spikes_info", "1 Memory, 1 Disk I/O, 1 Network I/O")

b.assert_pixels(".metrics", "metrics-history-expanded-hour", ignore=[".spikes_count"])
# The mobile navigation bar sometimes appears in the
# screenshot... it seems to be animating itself into its final
# place after ".metrics" has been scrolled into
# view. Increasing the wait_delay helps.
b.assert_pixels(".metrics", "metrics-history-expanded-hour", ignore=[".spikes_count"],
wait_delay=1.0)

b.click("#metrics-hour-1597662000000 button.metrics-events-expander")
b.wait_in_text("#metrics-hour-1597662000000.metrics-hour-compressed", "1:00")
Expand Down

0 comments on commit 339f7fc

Please sign in to comment.