Commit 3d045ea8 authored by Douwe Maan's avatar Douwe Maan

Fix quarantined spec by waiting for requests

parent df35d772
...@@ -3,18 +3,15 @@ ...@@ -3,18 +3,15 @@
require 'spec_helper' require 'spec_helper'
# This is a regression test for https://gitlab.com/gitlab-org/gitlab-ce/issues/37569 # This is a regression test for https://gitlab.com/gitlab-org/gitlab-ce/issues/37569
# Quarantine: https://gitlab.com/gitlab-org/gitlab-ce/issues/65329 describe 'Projects > Files > User browses a tree with a folder containing only a folder', :js do
describe 'Projects > Files > User browses a tree with a folder containing only a folder', :quarantine do
let(:project) { create(:project, :empty_repo) } let(:project) { create(:project, :empty_repo) }
let(:user) { project.owner } let(:user) { project.owner }
before do before do
# We need to disable the tree.flat_path provided by Gitaly to reproduce the issue
allow(Gitlab::GitalyClient).to receive(:feature_enabled?).and_return(false)
project.repository.create_dir(user, 'foo/bar', branch_name: 'master', message: 'Add the foo/bar folder') project.repository.create_dir(user, 'foo/bar', branch_name: 'master', message: 'Add the foo/bar folder')
sign_in(user) sign_in(user)
visit(project_tree_path(project, project.repository.root_ref)) visit(project_tree_path(project, project.repository.root_ref))
wait_for_requests
end end
it 'shows the nested folder on a single row' do it 'shows the nested folder on a single row' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment