Skip to content

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

stabilize manage_projects_storage_spec

ulfertsf839cbd7c419
diff --git a/modules/storages/spec/features/manage_project_storage_spec.rb b/modules/storages/spec/features/manage_project_storage_spec.rb
index 2378b3fe6f6..f8ca8c6d0b6 100644
--- a/modules/storages/spec/features/manage_project_storage_spec.rb
+++ b/modules/storages/spec/features/manage_project_storage_spec.rb
@@ -151,7 +151,7 @@ RSpec.describe(
# The list of enabled file storages should now contain Storage 1
expect(page).to have_text('File storages available in this project')
- expect(page).to have_text('Storage 1')
+ expect(page).to have_text(storage.name)
# Press Edit icon to change the project folder mode to inactive
page.find('.icon.icon-edit').click
@@ -159,7 +159,7 @@ RSpec.describe(
id: Storages::ProjectStorage.last)
expect(page).to have_text('Edit the file storage to this project')
expect(page).not_to have_select('storages_project_storage_storage_id')
- expect(page).to have_text('Storage 1')
+ expect(page).to have_text(storage.name)
expect(page).to have_checked_field('storages_project_storage_project_folder_mode_manual')
expect(page).to have_text('Folder1')
@@ -170,7 +170,7 @@ RSpec.describe(
# The list of enabled file storages should still contain Storage 1
expect(page).to have_text('File storages available in this project')
- expect(page).to have_text('Storage 1')
+ expect(page).to have_text(storage.name)
# Click Edit icon again but cancel the edit
page.find('.icon.icon-edit').click
@@ -195,7 +195,7 @@ RSpec.describe(
page.find('.icon.icon-delete').click
# Approve Confirmation
- page.fill_in 'delete_confirmation', with: "Storage 1"
+ page.fill_in 'delete_confirmation', with: storage.name
page.click_button('Delete')
# List of ProjectStorages empty again