File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212it ('can be activated ' , function () {
1313 asAdmin ()
1414 ->navigate ('http://localhost:8100/wp-admin/plugins.php ' )
15- ->screenshot ()
1615 ->assertPresent ('tr[data-slug="simpleanalytics"] ' )
1716 ->click ('#activate-simpleanalytics ' )
1817 ->assertPresent ('a[href="options-general.php?page=simpleanalytics"] ' )
19- ->assertPresent ('#deactivate-simpleanalytics ' );
18+ ->assertPresent ('#deactivate-simpleanalytics ' )
19+ ->screenshot ();
2020});
2121
2222it ('adds a script by default ' , function () {
3838 ->assertValue ('simpleanalytics_ignore_pages ' , '/vouchers ' )
3939 ->screenshot ();
4040
41- visit ('http://localhost:8100 ' )->dd ()->assertSourceHas ('data-ignore-pages="/vouchers" ' );
41+ visit ('http://localhost:8100 ' )->refresh ()->assertSourceHas ('data-ignore-pages="/vouchers" ' );
4242});
4343
4444it ('adds inactive script for selected user roles ' , function () {
You can’t perform that action at this time.
0 commit comments