mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-19 01:58:16 +08:00
Fix Tracking code test for the homepage
This commit is contained in:
@@ -68,8 +68,8 @@ public class MainControllerEnvIntegrationTests
|
||||
@Test
|
||||
public void googleAnalytics() {
|
||||
String body = htmlHome();
|
||||
assertTrue("google analytics should be enabled",
|
||||
body.contains("ga('create', 'UA-1234567-89', 'auto');"));
|
||||
assertTrue("google tag manager should be enabled",
|
||||
body.contains("https://www.googletagmanager.com/gtm.js"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user