From 4c2dfa468137040facf26ce5301069644d7f9e89 Mon Sep 17 00:00:00 2001 From: Kabiru Mwenja Date: Thu, 8 Aug 2024 13:46:27 +0300 Subject: [PATCH] tests[Op#56284]: cover test case for edit --- .../storages/admin/project_storages_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/storages/spec/features/storages/admin/project_storages_spec.rb b/modules/storages/spec/features/storages/admin/project_storages_spec.rb index 2db9ff004b39..1cfdb72bbc1c 100644 --- a/modules/storages/spec/features/storages/admin/project_storages_spec.rb +++ b/modules/storages/spec/features/storages/admin/project_storages_spec.rb @@ -250,6 +250,19 @@ expect(page).to have_text(project.name) expect(page).to have_text(subproject.name) + + aggregate_failures "can edit the project folder" do + project_storages_index_page.click_menu_item_of("Edit project folder", project) + + within("dialog") do + choose "No specific folder" + click_on "Save" + end + + project_storages_index_page.within_the_table_row_containing(project.name) do + expect(page).to have_text("No specific folder") + end + end end context "when the user does not select a folder" do