OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix flickering storages feature spec
Eric Schubert5e0f1b5a5b95
diff --git a/modules/storages/spec/features/show_file_links_spec.rb b/modules/storages/spec/features/show_file_links_spec.rbindex 99e267982f5..2da5d135f02 100644--- a/modules/storages/spec/features/show_file_links_spec.rb+++ b/modules/storages/spec/features/show_file_links_spec.rb@@ -41,6 +41,7 @@ describe 'Showing of file links in work package', :enable_storages, type: :featulet(:wp_page) { ::Pages::FullWorkPackage.new(work_package, project) }before do+ project_storagefile_linklogin_as current_user@@ -48,10 +49,6 @@ describe 'Showing of file links in work package', :enable_storages, type: :featuendcontext 'if work package has associated file links' do- before do- project_storage- end-it "must show associated file links" doexpect(page).to have_selector('[data-qa-selector="op-tab-content--tab-section"]', count: 2)expect(page.find('[data-qa-selector="op-files-tab--file-link-list"]'))@@ -62,16 +59,14 @@ describe 'Showing of file links in work package', :enable_storages, type: :featucontext 'if user has no permission to see file links' dolet(:permissions) { %i(view_work_packages edit_work_packages) }- before do- project_storage- end-it 'must not show a file links section' doexpect(page).to have_selector('[data-qa-selector="op-tab-content--tab-section"]', count: 1)endendcontext 'if project has no storage' do+ let(:project_storage) { {} }+it 'must not show a file links section' doexpect(page).to have_selector('[data-qa-selector="op-tab-content--tab-section"]', count: 1)end