Flaky test ee/spec/features/groups/hooks/user_tests_hooks_spec.rb:40
Summary
Failure/Error: expect(page).to have_selector('.gl-alert-body', text: "Hook execution failed: Failed to open")
expected to find visible css ".gl-alert-body" with text "Hook execution failed: Failed to open" but there were no matches. Also found "Hook execution failed. Failed to open", which matched the selector but not all filters.
Timeout (10s) reached while running a waiting Capybara finder.
Consider using a non-waiting finder.
See https://www.cloudbees.com/blog/faster-rails-tests
Steps to reproduce
bundle exec rspec ee/spec/features/groups/hooks/user_tests_hooks_spec.rb
Please refer to Flaky tests documentation to learn more about how to reproduce them.
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.
Logs
Output:
<div class="gl-alert flash-alert gl-alert-danger" data-testid="alert-danger" role="alert">
<div class="gl-alert-icon-container">
<svg class="s16 gl-alert-icon gl-alert-icon-no-title" data-testid="error-icon"><use href="/assets/icons-0b41337f52be73f7bbf9d59b841eb98a6e790dfa1a844644f120a80ce3cc18ba.svg#error"></use></svg>
</div>
<button class="gl-button btn btn-icon btn-sm btn-default btn-default-tertiary js-close gl-dismiss-btn " aria-label="Dismiss" type="button"><svg class="s16 gl-icon gl-button-icon " data-testid="close-icon"><use href="/assets/icons-0b41337f52be73f7bbf9d59b841eb98a6e790dfa1a844644f120a80ce3cc18ba.svg#close"></use></svg>
</button>
<div class="gl-alert-content" role="alert">
<div class="gl-alert-body">
Hook execution failed. Failed to open
</div>
</div>
</div>
Edited by Bojan Marjanovic