Fix admin notification with relative URLs
The test was passing because it was using the rack driver, but on real browsers it wasn't generating the expected URL.
This commit is contained in:
@@ -158,7 +158,7 @@ describe "Notifications" do
|
||||
expect(page.current_url).to eq("https://www.external.link.dev/")
|
||||
end
|
||||
|
||||
scenario "With internal link" do
|
||||
scenario "With internal link", :js do
|
||||
admin_notification.update!(link: "/stats")
|
||||
|
||||
visit notifications_path
|
||||
|
||||
Reference in New Issue
Block a user