Skip to content

Commit

Permalink
partial fix for services show tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Jan 23, 2024
1 parent 47e3a62 commit b14d328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions spec/features/services/service_index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

it "shows enabled services sorted by broken link count" do
expect(page).to have_content("Services (2)")
expect(page).to have_content("Zebra Fouling 5 1")
expect(page).to have_content("Aardvark Wardens 4 0")
expect(page).to have_content("Zebra Fouling #{@zebra.lgsl_code} 1")
expect(page).to have_content("Aardvark Wardens #{@aardvark.lgsl_code} 0")
expect("Zebra Fouling").to appear_before("Aardvark Wardens")
end
end
10 changes: 1 addition & 9 deletions spec/features/services/service_show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,7 @@
end

it "displays a filter box" do
expect(page).to have_selector(".filter-control")
end

it "has navigation tabs" do
expect(page).to have_selector(".link-nav")
within(".link-nav") do
expect(page).to have_link "Broken links"
expect(page).to have_link "All links"
end
expect(page).to have_selector(".js-gem-c-table__filter")
end

describe "broken links" do
Expand Down

0 comments on commit b14d328

Please sign in to comment.