Unify and move documentable shared specs to nested documentable file

This commit is contained in:
taitus
2025-05-19 10:38:48 +02:00
parent 11f09c281c
commit 7a317ef9c1
2 changed files with 11 additions and 38 deletions

View File

@@ -198,11 +198,17 @@ describe "Nested documentable" do
expect(page).to have_content notice_text
if factory != :dashboard_action
expect(page).to have_content "Documents (3)"
expect(page).to have_link href: /.pdf\Z/, count: 3
expect(page).to have_link text: "clippy.pdf"
expect(page).to have_link text: "empty.pdf"
expect(page).to have_link text: "logo.pdf"
within "#documents" do
expect(page).to have_content "Documents (3)"
expect(page).to have_link href: /.pdf\Z/, count: 3
expect(page).to have_link text: "empty.pdf"
expect(page).to have_css "a[rel=nofollow]"
expect(page).to have_link text: "clippy.pdf"
expect(page).to have_css "a[rel=nofollow]"
expect(page).to have_link text: "logo.pdf"
expect(page).to have_css "a[rel=nofollow]"
expect(page).not_to have_css "a[target=_blank]"
end
end
end