Skip to content

Commit

Permalink
Grab screenshots during testing
Browse files Browse the repository at this point in the history
See #183
  • Loading branch information
bjuppa committed May 29, 2020
1 parent d784da4 commit f1fe3e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Browser/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
Expand Down
2 changes: 2 additions & 0 deletions tests/Browser/SkipToContentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function test_skip_to_content()
$browser->keys($this->element, '{enter}')
->assertNotFocused($this->element)
->assertFragmentIs('kontourMain');

$browser->screenshot('docs/dashboard');
});
}
}

0 comments on commit f1fe3e6

Please sign in to comment.