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

tests[Op#56922]: reinstate test, remove flaky aria assertion

Kabiru Mwenja485f40bc232d
diff --git a/modules/storages/spec/components/storages/admin/storages/oauth_access_granted_modal_component_spec.rb b/modules/storages/spec/components/storages/admin/storages/oauth_access_granted_modal_component_spec.rb
index bd05640798e..a7f164282c8 100644
--- a/modules/storages/spec/components/storages/admin/storages/oauth_access_granted_modal_component_spec.rb
+++ b/modules/storages/spec/components/storages/admin/storages/oauth_access_granted_modal_component_spec.rb
@@ -46,17 +46,8 @@ RSpec.describe Storages::Admin::Storages::OAuthAccessGrantedModalComponent, type
text: "Access granted. You are now ready to add projects to #{storage.name}"
)
- expect(page).to have_test_selector(
- "oauth-access-granted-modal-body",
- text: "Access granted",
- aria: { hidden: true }
- )
-
- # expect(page).to have_test_selector(
- # "oauth-access-granted-modal-body",
- # text: "You are now ready to to add projects to #{storage.name}",
- # aria: { hidden: true }
- # )
+ expect(page).to have_content("Access granted")
+ expect(page).to have_content("You are now ready to add projects to #{storage.name}")
expect(page).to have_button("Close")