Skip to content

Transient failure in spec/features/issues/move_spec.rb

As seen in https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/20965882:

  1) issue move to another project user has permission to move issue moving issue to another project
     Got 0 failures and 2 other errors:

     1.1) Failure/Error: Capybara.page.evaluate_script('jQuery.active').zero?

          Capybara::Poltergeist::JavascriptError:
            One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).

            ReferenceError: Can't find variable: jQuery
            ReferenceError: Can't find variable: jQuery
                at undefined:1
                at :1
                at :1
          # ./spec/support/wait_for_requests.rb:49:in `finished_all_ajax_requests?'
          # ./spec/support/wait_for_requests.rb:25:in `finished_all_requests?'
          # ./spec/support/wait_for_requests.rb:17:in `block in wait_for_requests'
          # ./spec/support/wait_for_requests.rb:33:in `block in wait_for'
          # ./spec/support/wait_for_requests.rb:32:in `loop'
          # ./spec/support/wait_for_requests.rb:32:in `wait_for'
          # ./spec/support/wait_for_requests.rb:17:in `wait_for_requests'
          # ./spec/features/issues/move_spec.rb:44:in `block (3 levels) in <top (required)>'
          # ./spec/spec_helper.rb:90:in `block (2 levels) in <top (required)>'

     1.2) Failure/Error: ex.run_with_retry retry: 2

          Capybara::Poltergeist::JavascriptError:
            One or more errors were raised in the Javascript code on the page. If you don't care about these errors, you can ignore them by setting js_errors: false in your Poltergeist configuration (see documentation for details).

            Unhandled promise rejection Error: [object Object]
            Unhandled promise rejection Error: [object Object]
                at http://127.0.0.1:39093/assets/webpack/common.bundle.js:3371
          # ./spec/spec_helper.rb:90:in `block (2 levels) in <top (required)>'

Finished in 36 minutes 38 seconds (files took 25.9 seconds to load)
1179 examples, 1 failure, 8 pending

Failed examples:

rspec ./spec/features/issues/move_spec.rb:40 # issue move to another project user has permission to move issue moving issue to another project