Skip to content

Commit a3a10f2

Browse files
committed
test: Use different /system subpage in page switching tests
Adjust check-{dashboard,host-switching} to switch to the hardware info subpage instead of the graphs subpage, as we will soon replace the latter with a standalone webpack. Skip that check in TestBasicDashboard on rhel-8-3-distropkg, as that earlier cockpit-system version does not yet have PF4 breadcrumbs. Closes cockpit-project#14677
1 parent 4fa276d commit a3a10f2

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

test/verify/check-dashboard

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,11 @@ class TestBasicDashboard(MachineCase, DashBoardHelpers):
230230

231231
b.enter_page("/system", "10.111.113.3")
232232
b.wait_text_not("#system_information_systime_button", "")
233-
b.click(".system-usage a") # View graphs
234-
b.enter_page("/system/graphs", "10.111.113.3")
235-
b.click("#link-network a")
236-
b.enter_page("/network", "10.111.113.3")
233+
if m.image != "rhel-8-3-distropkg":
234+
b.click(".system-information a") # View hardware details
235+
b.enter_page("/system/hwinfo", "10.111.113.3")
236+
b.click(".pf-c-breadcrumb li:first-child a")
237+
b.enter_page("/system", "10.111.113.3")
237238

238239
self.allow_hostkey_messages()
239240
self.allow_journal_messages(".*server offered unsupported authentication methods: password public-key.*")

test/verify/check-host-switching

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ class TestHostSwitching(MachineCase, HostSwitcherHelpers):
269269

270270
b.enter_page("/system", "10.111.113.3")
271271
b.wait_text_not("#system_information_systime_button", "")
272-
b.click(".system-usage a") # View graphs
273-
b.enter_page("/system/graphs", "10.111.113.3")
274-
b.click("#link-network a")
275-
b.enter_page("/network", "10.111.113.3")
272+
b.click(".system-information a") # View hardware details
273+
b.enter_page("/system/hwinfo", "10.111.113.3")
274+
b.click(".pf-c-breadcrumb li:first-child a")
275+
b.enter_page("/system", "10.111.113.3")
276276

277277
# Remove host underneath ourselves
278278
b.switch_to_top()

0 commit comments

Comments
 (0)