Skip to content

Commit 95244ac

Browse files
committed
wip
1 parent ccb8064 commit 95244ac

File tree

3 files changed

+93
-3
lines changed

3 files changed

+93
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"require-dev": {
33
"rector/rector": "^1.2",
44
"pestphp/pest": "^4.1",
5-
"pestphp/pest-plugin-browser": "^4.1"
5+
"pestphp/pest-plugin-browser": "^4.1",
6+
"symfony/var-dumper": "^7.3"
67
},
78
"autoload": {
89
"psr-4": {

composer.lock

Lines changed: 88 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Browser/PluginSettingsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
$page->fill('user_login', 'admin');
77
$page->fill('user_pass', 'admin');
88
$page->press('wp-submit');
9-
109
$page->assertSee('Welcome to WordPress!');
10+
11+
$page2 = visit('http://127.0.0.1:8100')->screenshot();
12+
expect($page2->content())->toContain('<!-- Simple Analytics: Not logging requests from admins -->');
1113
});

0 commit comments

Comments
 (0)