This commit is contained in:
Ahmed Ejaz 2023-11-22 22:11:10 +05:00 committed by Andreas Nedbal
parent e5fe0c6958
commit 91ab795e38
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ describe "inbox/_entry.html.haml", type: :view do
expect(rendered).to have_css(%(.inbox-entry__sharing a.btn[data-inbox-sharing-target="twitter"]))
end
it "has a link-button to copy to clipboard" do
expected_attribute_selectors = %([data-controller="clipboard"][data-action="clipboard#copy"][data-inbox-sharing-target="clipboard"])
expect(rendered).to have_css(%(.inbox-entry__sharing a.btn#{expected_attribute_selectors}))
end
it "does not have a link-button to share to a custom site" do
expect(rendered).not_to have_css(%(.inbox-entry__sharing a.btn[data-inbox-sharing-target="custom"]))
end