#1448, add specs
This commit is contained in:
parent
e5fe0c6958
commit
91ab795e38
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue