Skip to content

Commit

Permalink
test: Close modal in TestSystemInfo.testCryptoPolicies
Browse files Browse the repository at this point in the history
Close the crypto policy dialog after checking the default value. Leaving
it open and clicking around on the main page is cheating and prone to
race conditions, and will fail with the next commit.
  • Loading branch information
martinpitt committed Nov 10, 2023
1 parent d9f10da commit 3617fd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ password=foobar
b.click("#crypto-policy-button")
func = b.wait_not_present if m.image.startswith('rhel-8') or m.image.startswith('centos-8') else b.wait_visible
func(".pf-v5-c-menu__item-main .pf-v5-c-menu__item-text:contains('DEFAULT:SHA1')")
b.click("#crypto-policy-dialog button:contains('Cancel')")
b.wait_not_present("#crypto-policy-dialog")

# Test if a new subpolicy can be set
new_profile = "LEGACY:AD-SUPPORT"
Expand Down

0 comments on commit 3617fd7

Please sign in to comment.