Actions
Bug #13293
closedIntermittent host#edit parameter integration test failures after timeout
Description
Further to #13111, some host#edit parameter integration tests are failing intermittently but after the Capybara timeout (#13111 fixed instances of the timeout not being used). These can be seen from the verbose test logs when it takes over 30 seconds.
1) Assertion failure when removing an overridden global parameter and checking the override button is added back.
HostIntegrationTest::edit page.test_0004_correctly override global params test/integration/host_test.rb:461
Fails on the third line:
refute page.has_selector?('#inherited_parameters .btn[data-tag=override]') page.find('#global_parameters_table a[data-original-title="Remove Parameter"]').click assert page.has_selector?('#inherited_parameters .btn[data-tag=override]')
2) Assertion failure when overriding a global parameter and checking the override button is removed.
Failed assertion, no message given. (Minitest::Assertion) /var/lib/workspace/workspace/test_develop_pr_core/database/postgresql/label/fast/ruby/1.9.3/test/integration/host_test.rb:453
Third line:
assert page.has_selector?('#inherited_parameters .btn[data-tag=override]') page.find('#inherited_parameters .btn[data-tag=override]').click assert page.has_no_selector?('#inherited_parameters .btn[data-tag=override]')
3) Assertion failure when overriding a smart class parameter and checking the text area is enabled.
HostIntegrationTest::edit page.test_0001_class parameters and overrides are displayed correctly for booleans (from HostIntegrationTest__edit page) Capybara::ElementNotFound: Unable to find css "textarea:enabled" test/integration/host_test.rb:392:in `block (2 levels) in <class:HostIntegrationTest>' (Capybara::ElementNotFound)
Fourth line:
assert_equal class_params.find("textarea").value, "true" assert class_params.find("textarea:disabled") class_params.find("a[data-tag='override']").click assert class_params.find("textarea:enabled")
Files
Actions