We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8f3b22 commit 2d566f0Copy full SHA for 2d566f0
tests/Browser/PluginSettingsTest.php
@@ -6,8 +6,10 @@ class PluginSettingsTest extends BrowserTestCase
6
{
7
public function test_activation_and_presence_of_default_scripts(): void
8
9
- $this->asAdmin()->visit('/wp-admin/plugins.php')
10
- ->click('#activate-simpleanalytics')
+ $browser = $this->asAdmin();
+ $this->activatePluginIfNeeded($browser);
11
+
12
+ $browser->visit('/wp-admin/plugins.php')
13
->assertSeeElement('#deactivate-simpleanalytics')
14
->visit('/')
15
->assertContains('<!-- Simple Analytics: Not logging requests from admins -->')
0 commit comments