Project

General

Profile

Bug #14350

Intermittent HostgroupJSTest.test_0001_submit updates taxonomy 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 JS integration test in #12793 to test the multi-select behaviour intermittently fails:

NoMethodError: undefined method `click' for nil:NilClass
    test/integration/hostgroup_js_test.rb:43:in `select_from_list'
    test/integration/hostgroup_js_test.rb:10:in `block in <class:HostgroupJSTest>' (NoMethodError)
/var/lib/workspace/workspace/test_develop_pr_core@3/database/postgresql/label/fast/ruby/2.0.0/test/integration/hostgroup_js_test.rb:43    

Related issues

Related to Foreman - Bug #12793: organzation and location not saved for hostgroupClosed2015-12-13
Related to Foreman - Bug #15785: Intermittent HostgroupJSTest.test_0001_submit updates taxonomy test failuresRejected2016-07-22

Associated revisions

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

fixes #14350 - replace selector to ensure Capybara wait is used

The CSS selector using .all wouldn't wait for a matching element to be
rendered, so any delay could cause it to match nothing. Since text can't
be matched in a CSS selector, it's been replaced with an XPath selector.

The test was also passing a block to Array#first, which was ignored
causing the wrong item to be selected.

History

#1 Updated by Dominic Cleal about 6 years ago

  • Related to Bug #12793: organzation and location not saved for hostgroup added

#2 Updated by Dominic Cleal about 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#3 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/3372 added

#4 Updated by Marek Hulán about 6 years ago

  • Legacy Backlogs Release (now unused) set to 136

#5 Updated by Dominic Cleal about 6 years ago

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

#6 Updated by Dominic Cleal almost 6 years ago

  • Related to Bug #15785: Intermittent HostgroupJSTest.test_0001_submit updates taxonomy test failures added

Also available in: Atom PDF