Skip to content

Commit

Permalink
test: Avoid MachineCase.system_before() on ws container scenario
Browse files Browse the repository at this point in the history
`system_before()` only works for package based OSes. The ws container
has a newer Cockpit version.
  • Loading branch information
martinpitt committed Jan 28, 2025
1 parent e782c7a commit 841968b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ class TestFiles(testlib.MachineCase):
b.click("button.pf-m-primary")
b.wait_in_text("[data-item='newdir1'] .item-owner", "testuser")

if self.system_before(329):
if not m.ws_container and self.system_before(329):
# Open in terminal feature not supported before cockpit 329
b.mouse("[data-item='newdir1']", "contextmenu")
b.wait_visible(".contextMenu button:contains('Delete')")
Expand Down

0 comments on commit 841968b

Please sign in to comment.