-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test to verify switch app menu item Updated code to include system test for switch app menu item updated code in user helper to remove warning messages in test suite
- Loading branch information
1 parent
089985e
commit da4dfb3
Showing
4 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "rails_helper" | ||
|
||
RSpec.describe "Main menu" do | ||
context "as a normal user" do | ||
it "shows the Services/Switch app menu items and goes to signon when Switch app is clicked" do | ||
as_gds_editor do | ||
visit "/admin" | ||
|
||
within(".govuk-header__container") do | ||
expect(page).to have_link("Services") | ||
expect(page).to have_link("Switch app") | ||
end | ||
end | ||
end | ||
end | ||
end |