From f1fe3e668771c28fce5113c176c3b251a139a672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Nilsved?= Date: Fri, 29 May 2020 17:19:13 +0200 Subject: [PATCH] Grab screenshots during testing See #183 --- tests/Browser/AuthenticationTest.php | 1 + tests/Browser/SkipToContentTest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/Browser/AuthenticationTest.php b/tests/Browser/AuthenticationTest.php index 3bf62152..5d9a95e0 100644 --- a/tests/Browser/AuthenticationTest.php +++ b/tests/Browser/AuthenticationTest.php @@ -21,6 +21,7 @@ public function test_login() $browser->visit($routeManager->loginUrl()) ->type('email', $this->user->email) ->type('password', 'secret') + ->screenshot('docs/login') ->press('Login') ->assertUrlIs($routeManager->indexUrl()); }); diff --git a/tests/Browser/SkipToContentTest.php b/tests/Browser/SkipToContentTest.php index 07290e2d..0acf1025 100644 --- a/tests/Browser/SkipToContentTest.php +++ b/tests/Browser/SkipToContentTest.php @@ -32,6 +32,8 @@ public function test_skip_to_content() $browser->keys($this->element, '{enter}') ->assertNotFocused($this->element) ->assertFragmentIs('kontourMain'); + + $browser->screenshot('docs/dashboard'); }); } }