File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ namespace Tests \Browser ;
4+
5+ const DEFAULT_SA_NOTICE = '<!-- Simple Analytics: Not logging requests from admins --> ' ;
6+
37test ('Sign in ' , function () {
48 $ page = visit ('http://127.0.0.1:8100/wp-admin ' );
59
913 $ page ->assertSee ('Welcome to WordPress! ' );
1014
1115 $ page2 = visit ('http://127.0.0.1:8100 ' )->screenshot ();
12- expect ($ page2 ->content ())->toContain ( ' <!-- Simple Analytics: Not logging requests from admins --> ' );
16+ expect ($ page2 ->content ())->not -> toContain ( DEFAULT_SA_NOTICE );
1317});
Original file line number Diff line number Diff line change 11<?php
22
3+ namespace Tests ;
4+
35/*
46|--------------------------------------------------------------------------
57| Test Case
1113|
1214*/
1315
14- pest ()->extend (Tests \ TestCase::class)->in ('Feature ' );
16+ pest ()->extend (TestCase::class)->in ('Feature ' );
1517
1618/*
1719|--------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments