Skip to content

Commit eb52920

Browse files
committed
wip
1 parent 5e2c9d2 commit eb52920

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Browser/PluginSettingsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
it('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

2222
it('adds a script by default', function () {
@@ -38,7 +38,7 @@
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

4444
it('adds inactive script for selected user roles', function () {

0 commit comments

Comments
 (0)