File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,19 @@ public function test_activation_and_presence_of_default_scripts(): void
1717 ->visit ('/ ' )
1818 ->assertContains ('<script src="https://scripts.simpleanalyticscdn.com/latest.js"></script> ' );
1919 }
20+
21+ public function test_adds_script_with_ignored_pages (): void
22+ {
23+ $ this ->asAdmin ()
24+ ->pause ()
25+ ->visit ('/wp-admin/options-general.php?page=simpleanalytics&tab=ignore-rules ' )
26+ ->fillField ('simpleanalytics_ignore_pages ' , '/vouchers ' )
27+ ->click ('Save Changes ' )
28+ ->visit ('/wp-admin/options-general.php?page=simpleanalytics&tab=ignore-rules ' )
29+ ->assertFieldEquals ('simpleanalytics_ignore_pages ' , '/vouchers ' );
30+
31+ $ this ->myBrowser ()
32+ ->visit ('/ ' )
33+ ->assertContains ('data-ignore-pages="/vouchers" ' );
34+ }
2035}
You can’t perform that action at this time.
0 commit comments