Skip to content

Commit

Permalink
Try to fix cockpit integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jirihnidek committed Jan 12, 2022
1 parent 718d5e2 commit 4e864f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration-tests/check-subscriptions
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ class TestSubscriptions(SubscriptionsCase):
b.set_input_text("#subscription-register-username", "doc")
b.set_input_text("#subscription-register-password", "wrongpass")

# Do not try to connect to insights
b.set_checked("#subscription-insights", False)

# try to register
dialog_register_button_sel = "footer .pf-m-primary"
b.click(dialog_register_button_sel)
Expand Down Expand Up @@ -281,6 +284,9 @@ class TestSubscriptions(SubscriptionsCase):
b.set_val("#subscription-register-url", "custom")
b.set_input_text("#subscription-register-url-custom", CANDLEPIN_URL)

# Do not try to connect to insights
b.set_checked("#subscription-insights", False)

# select registration method "activation key"
activation_key_checkbox = "#subscription-register-activation-key-method"
b.click(activation_key_checkbox)
Expand Down Expand Up @@ -369,6 +375,10 @@ class TestSubscriptions(SubscriptionsCase):
b.set_input_text("#subscription-register-username", "admin")
b.set_input_text("#subscription-register-password", "admin")
b.set_input_text("#subscription-register-org", "admin")

# Do not try to connect to insights
b.set_checked("#subscription-insights", False)

dialog_register_button_sel = "footer .pf-m-primary"
b.click(dialog_register_button_sel)
b.wait_not_present(dialog_register_button_sel)
Expand Down

0 comments on commit 4e864f3

Please sign in to comment.