Only render position field on table when cards rendered are not headers

This commit is contained in:
taitus
2023-10-27 11:00:08 +02:00
parent 4e9d5d8c5a
commit bce1474527
6 changed files with 21 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ describe "Cards", :admin do
within("#header") do
expect(page).to have_css(".homepage-card", count: 1)
expect(page).not_to have_css "th", exact_text: "Position"
expect(page).to have_content "Header label"
expect(page).to have_content "Header text"
expect(page).to have_content "Header description"

View File

@@ -70,6 +70,7 @@ describe "SDG homepage configuration" do
within(".sdg-header") do
expect(page).to have_content "My header"
expect(page).not_to have_content "Create header"
expect(page).not_to have_css "th", exact_text: "Position"
end
end