Bug #18239

Intermittent AboutIntegrationTest.test_0002_about page failures, AJAX expectations not satisfied

Added by Dominic Cleal 12 months ago. Updated 12 months ago.

Status:Closed
Priority:Normal
Assigned To:Dominic Cleal
Category:Tests
Target version:-
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4229
Story points-
Velocity based estimate-
Release1.15.0Release relationshipAuto

Description

Since #16700, the following AboutIntegrationTest fails intermittently:

AboutIntegrationTest.test_0002_about page proxies should have version
not all expectations were satisfied
unsatisfied expectations:
- expected at least once, not yet invoked: #<AnyInstance:ComputeResource(id: integer, name: string, description: text, url: string, user: string, password: text, uuid: string, type: string, created_at: datetime, updated_at: datetime, attrs: text)>.ping(any_parameters)
- expected at least once, not yet invoked: #<Mock:ProxyStatus::Version>.version(any_parameters)
- expected at least once, not yet invoked: #<AnyInstance:SmartProxy(id: integer, name: string, url: string, created_at: datetime, updated_at: datetime, expired_logs: string)>.statuses(any_parameters)
 (Minitest::Assertion)
/var/lib/workspace/workspace/test_develop_pr_core/database/postgresql/ruby/2.0.0/slave/fast/test/integration/about_test.rb:5    

(took 8.3 sec)

Possibly the test is completing the AJAX calls have started, so the expectations on the AJAX calls themselves are never satisfied.


Related issues

Related to Foreman - Bug #16700: Intermittent AboutIntegrationTest.test_0001_about page in... Closed 09/27/2016

Associated revisions

Revision 5ba8f680
Added by Dominic Cleal 12 months ago

fixes #18239 - wait for AJAX spinners removal on about page test

`wait_for_ajax` alone may return after page load before AJAX requests
have even begun, so also wait for the spinners to be replaced.

History

#1 Updated by Dominic Cleal 12 months ago

  • Related to Bug #16700: Intermittent AboutIntegrationTest.test_0001_about page integration test failures added

#2 Updated by The Foreman Bot 12 months ago

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

#3 Updated by Dominic Cleal 12 months ago

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

#4 Updated by Dominic Cleal 12 months ago

  • Release set to 1.15.0

Also available in: Atom PDF