Project

General

Profile

Bug #14865

Intermittent hosts index multiple actions.test_0001_show action buttons test failures

Added by Dominic Cleal about 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

The following test is failing intermittently:

HostJSTest::hosts index multiple actions.test_0001_show action buttons (from HostJSTest__hosts index multiple actions)
Took 3 sec.
Failed assertion, no message given. (Minitest::Assertion)
/var/lib/workspace/workspace/test_develop/database/postgresql/ruby/2.2/slave/fast/test/integration/host_js_test.rb:228    

I think the .checked? test is failing to wait, as it's executing in three seconds.

Associated revisions

Revision ce0562cc (diff)
Added by Dominic Cleal about 6 years ago

fixes #14865 - use waiting selector to search for checked boxes

Also changes the click on the select all checkbox to trigger a DOM click
event, making it more reliable when the element moves slightly during
page loading.

History

#1 Updated by The Foreman Bot about 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3476 added

#2 Updated by Dominic Cleal about 6 years ago

Looks like there may be a similar issue to #14340 still. When it's still failing, the click for the checkbox is not in the normal position suggesting the element could be moving during page load.

On a failed test:

  cookies=[{:name=>"test_user", :domain=>"127.0.0.1", :value=>"secret_admin", :expires=>nil, :path=>"/", :secure=>false, :httponly=>false}]
  updating counter on page load
    counter page load... finished
  click19={"position"=>{"x"=>80.5, "y"=>208.5}}

(Lines 2/3 show the host_checkbox function that runs on page load succeeded, and line 4 shows the clicking by Poltergeist of the select all checkbox.)

A successful run clicks differently:

  cookies=[{:name=>"test_user", :domain=>"127.0.0.1", :value=>"secret_admin", :expires=>nil, :path=>"/", :secure=>false, :httponly=>false}]
    updating counter on page load
counter page load... finished
  toggleCheck()
    toggleCheck(): checking host_ids_1 to true
  toggleCheck()... finished
  click13={"position"=>{"x"=>80.5, "y"=>197.5}}

#3 Updated by Dominic Cleal about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal about 6 years ago

  • Legacy Backlogs Release (now unused) set to 136

Also available in: Atom PDF