diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/features/projects_spec.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r-- | spec/features/projects_spec.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index 9b5f4ca6d48..618a256d4fb 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -16,7 +16,7 @@ RSpec.describe 'Project' do shared_examples 'creates from template' do |template, sub_template_tab = nil| it "is created from template", :js do - find('#create-from-template-tab').click + find('[data-qa-selector="create_from_template_link"]').click find(".project-template #{sub_template_tab}").click if sub_template_tab find("label[for=#{template.name}]").click fill_in("project_name", with: template.name) @@ -34,7 +34,7 @@ RSpec.describe 'Project' do end context 'create with sample data template' do - it_behaves_like 'creates from template', Gitlab::SampleDataTemplate.find(:basic), '.sample-data-templates-tab' + it_behaves_like 'creates from template', Gitlab::SampleDataTemplate.find(:sample) end end @@ -47,9 +47,7 @@ RSpec.describe 'Project' do end it 'shows the command in a popover', :js do - page.within '.profile-settings-sidebar' do - click_link 'Show command' - end + click_link 'Show command' expect(page).to have_css('.popover .push-to-create-popover #push_to_create_tip') expect(page).to have_content 'Private projects can be created in your personal namespace with:' @@ -61,7 +59,7 @@ RSpec.describe 'Project' do let(:path) { project_path(project) } before do - sign_in(create(:admin)) + sign_in(project.owner) end it 'parses Markdown' do @@ -125,7 +123,7 @@ RSpec.describe 'Project' do let(:path) { project_path(project) } before do - sign_in(create(:admin)) + sign_in(project.owner) visit path end @@ -156,7 +154,7 @@ RSpec.describe 'Project' do let(:path) { project_path(project) } before do - sign_in(create(:admin)) + sign_in(project.owner) visit path end |