Skip to content

Commit

Permalink
shared specs for utility menu
Browse files Browse the repository at this point in the history
  • Loading branch information
stonefilipczak committed Aug 26, 2024
1 parent 3312eef commit 6fc45ac
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/support/shared_examples/utility_menu.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
RSpec.shared_examples "a page with a utility menu" do
it "has a utility menu with the expected links for a public solver" do
expect(response.body).to include("Dashboard")
expect(response.body).to include("Submissions")
expect(response.body).to include("User Guides")
expect(response.body).to include("Help")
end

it "has a utility menu with the expected links for a challenge manager" do
expect(response.body).to include("Dashboard")
expect(response.body).to include("Challenges")
expect(response.body).to include("Submissions")
expect(response.body).to include("Evaluations")
expect(response.body).to include("User Guides")
expect(response.body).to include("Help")
end

it "has a utility menu with the expected links for a public solver" do
expect(response.body).to include("Dashboard")
expect(response.body).to include("Evaluations")
expect(response.body).to include("User Guides")
expect(response.body).to include("Help")
end
end

0 comments on commit 6fc45ac

Please sign in to comment.