Project

General

Profile

Actions

Bug #14865

closed

Intermittent hosts index multiple actions.test_0001_show action buttons test failures

Added by Dominic Cleal almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
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.

Actions #1

Updated by The Foreman Bot almost 8 years ago

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

Updated by Dominic Cleal almost 8 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}}
Actions #3

Updated by Dominic Cleal almost 8 years ago

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

Updated by Dominic Cleal almost 8 years ago

  • translation missing: en.field_release set to 136
Actions

Also available in: Atom PDF