Review /ee/spec/features/projects/new_project_spec.rb

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

/ee/spec/features/projects/new_project_spec.rb has been demonstrating flakiness and preventing work unrelated to the test to get merged.

see: https://gitlab.com/gitlab-org/gitlab/-/jobs/6600316777

Some theories about why it fails:

The failures appear to have two issues:

  1. The Connect button doesn't always show.
  2. The Authenticate button sometimes results in Access denied to your GitHub account.

image image__1_

The first problem might be happening because the polling isn't working, or maybe the status updates are not getting to the background.

The second problem looks like the stubbing for Octokit wasn't properly done in time, or perhaps Octokit was called multiple times/or in a way that would cause it to try to make a request to GitHub.

Edited by 🤖 GitLab Bot 🤖