mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-05 15:11:01 -05:00
use console.log instead of alert
so our headless chrome doesn't get stuck on the alert
This commit is contained in:
@@ -6,9 +6,9 @@ describe 'layouts/application.html.haml', type: "view" do
|
||||
end
|
||||
|
||||
it 'includes the analytics code' do
|
||||
Rails.application.config.analytics_code = '<script>alert("foo!")</script>'
|
||||
Rails.application.config.analytics_code = '<script>console.log("foo!");</script>'
|
||||
render
|
||||
assert_select "script", text: 'alert("foo!")'
|
||||
assert_select "script", text: 'console.log("foo!");'
|
||||
rendered.should_not have_content 'script'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user