Project

General

Profile

Bug #15785

Intermittent HostgroupJSTest.test_0001_submit updates taxonomy test failures

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

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

Description

Further test failures (since #14350) are still occurring in HostgroupJSTest.test_0001_submit updates taxonomy at this location:

HostgroupJSTest.test_0001_submit updates taxonomy
Took 33 sec.
Capybara::ElementNotFound: Unable to find xpath "//div[@id='ms-hostgroup_location_ids']//li/span[text() = 'loc475']" 
    test/integration/hostgroup_js_test.rb:42:in `select_from_list'
    test/integration/hostgroup_js_test.rb:10:in `block in <class:HostgroupJSTest>' (Capybara::ElementNotFound)
/usr/local/rvm/gems/ruby-2.1.5@test_develop_pr_core-2/gems/capybara-2.7.1/lib/capybara/node/finders.rb:44    

(at commit d163507797c5d9c20249aa4d858465cbb74be229)

capybara-201607220658188501597120.png View capybara-201607220658188501597120.png 10.3 KB screenshot before successful click Ivan Necas, 07/22/2016 07:12 AM
capybara-201607220658141719223562.png View capybara-201607220658141719223562.png 42.6 KB screenshot before successful click Ivan Necas, 07/22/2016 07:12 AM
capybara-20160722065824262775113.png View capybara-20160722065824262775113.png 11.3 KB screenshot before failed click Ivan Necas, 07/22/2016 07:13 AM
Capybara 201607220658188501597120 Capybara 201607220658141719223562 Capybara 20160722065824262775113

Related issues

Related to Foreman - Bug #14350: Intermittent HostgroupJSTest.test_0001_submit updates taxonomy test failuresClosed2016-03-24

History

#1 Updated by Dominic Cleal almost 6 years ago

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

#2 Updated by Ivan Necas almost 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Ivan Necas

#3 Updated by Ivan Necas almost 6 years ago

I tried to investigate this one by taking screenshots immediately before the failure. It looks like it's possible
the page is not rendered completely before we try that. I will try adding `has_xpath?` with `:visible => true` assertion first before trying the
click to make sure it's loaded and visible.

#4 Updated by The Foreman Bot almost 6 years ago

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

#5 Updated by Dominic Cleal over 5 years ago

  • Status changed from Ready For Testing to Rejected

PR closed due to inactivity, but I don't think this is occurring any more, so closing.

Also available in: Atom PDF