Skip to content

Commit

Permalink
test: workaround PF 5.4.0 breakpoint issue with ServiceTabs
Browse files Browse the repository at this point in the history
Resizing to a mobile layout does not trigger the NavList to show the
buttons on the left and right to scroll through the list. They do show
up when refreshing the page.
  • Loading branch information
jelly committed Sep 4, 2024
1 parent d3e4787 commit f2f381a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/verify/check-system-services
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ WantedBy=default.target
self.wait_service_present("test-fail.service")
b.assert_pixels("#services-page", "text-filter-test", skip_layouts=["mobile"])
b.set_layout("mobile")
# HACK: reload for PF 5.4.0 to detect the new layout and breakpoints
# https://github.com/patternfly/patternfly-react/issues/10897
b.reload()
b.enter_page("/system/services")
# Waiting a bit for the layout to stabilize. The scrolling of
# the header happens asynchronously with an animation.
time.sleep(2)
Expand All @@ -426,6 +430,7 @@ WantedBy=default.target
time.sleep(0.5)
b.assert_pixels_in_current_layout("#services-page", "text-filter-test")
b.set_layout("desktop")
self.wait_page_load()

# Filter by description capitalization not matching the unit description
init_filter_state()
Expand Down

0 comments on commit f2f381a

Please sign in to comment.