Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_browses_a_tree_with_a_folder_containing_only_a_folder_spec.rb « files « projects « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 645bfeb14e38100ae13c03b640027ec8360080cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'spec_helper'

# This is a regression test for https://gitlab.com/gitlab-org/gitlab-foss/issues/37569
RSpec.describe 'Projects > Files > User browses a tree with a folder containing only a folder', :js,
feature_category: :groups_and_projects do
  let(:project) { create(:project, :empty_repo) }
  let(:user) { project.first_owner }

  before do
    project.repository.create_dir(user, 'foo/bar', branch_name: 'master', message: 'Add the foo/bar folder')
    sign_in(user)
    visit(project_tree_path(project, project.repository.root_ref))
    wait_for_requests
  end

  it 'shows the nested folder on a single row' do
    expect(page).to have_content('foo/bar')
  end
end