We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 219d96e commit 5b23f49Copy full SHA for 5b23f49
1 file changed
tests/Browser/PluginSettingsTest.php
@@ -17,4 +17,19 @@ public function test_activation_and_presence_of_default_scripts(): void
17
->visit('/')
18
->assertContains('<script src="https://scripts.simpleanalyticscdn.com/latest.js"></script>');
19
}
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
29
+ ->assertFieldEquals('simpleanalytics_ignore_pages', '/vouchers');
30
31
+ $this->myBrowser()
32
+ ->visit('/')
33
+ ->assertContains('data-ignore-pages="/vouchers"');
34
+ }
35
0 commit comments