diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/features/projects/import_export/import_file_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/features/projects/import_export/import_file_spec.rb')
-rw-r--r-- | spec/features/projects/import_export/import_file_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/projects/import_export/import_file_spec.rb b/spec/features/projects/import_export/import_file_spec.rb index af228764c17..25836514981 100644 --- a/spec/features/projects/import_export/import_file_spec.rb +++ b/spec/features/projects/import_export/import_file_spec.rb @@ -30,14 +30,14 @@ RSpec.describe 'Import/Export - project import integration test', :js do it 'user imports an exported project successfully', :sidekiq_might_not_need_inline do visit new_project_path - click_import_project_tab + click_import_project click_link 'GitLab export' fill_in :name, with: 'Test Project Name', visible: true fill_in :path, with: 'test-project-path', visible: true attach_file('file', file) - expect { click_on 'Import project' }.to change { Project.count }.by(1) + expect { click_button 'Import project' }.to change { Project.count }.by(1) project = Project.last expect(project).not_to be_nil @@ -49,11 +49,11 @@ RSpec.describe 'Import/Export - project import integration test', :js do visit new_project_path - click_import_project_tab + click_import_project click_link 'GitLab export' fill_in :name, with: project.name, visible: true attach_file('file', file) - click_on 'Import project' + click_button 'Import project' page.within('.flash-container') do expect(page).to have_content('Project could not be imported') @@ -61,7 +61,7 @@ RSpec.describe 'Import/Export - project import integration test', :js do end end - def click_import_project_tab + def click_import_project find('[data-qa-selector="import_project_link"]').click end end |