diff --git a/decidim-core/lib/decidim/core/test/shared_examples/manage_share_tokens_examples.rb b/decidim-core/lib/decidim/core/test/shared_examples/manage_share_tokens_examples.rb index 7ed38085d50dc..c116d30edcfb6 100644 --- a/decidim-core/lib/decidim/core/test/shared_examples/manage_share_tokens_examples.rb +++ b/decidim-core/lib/decidim/core/test/shared_examples/manage_share_tokens_examples.rb @@ -143,7 +143,7 @@ end it "has a share button that opens the share url for the resource" do - within ".share_tokens tbody tr:first-child" do + within ".share_tokens tbody tr", text: share_tokens.first.token do share_window = window_opened_by { click_on "Preview", wait: 2 } within_window share_window do