Add Notes tests
This commit is contained in:
parent
c1e72be0c3
commit
ce19713c99
4 changed files with 233 additions and 0 deletions
35
tests/Browser/NotesTest.php
Normal file
35
tests/Browser/NotesTest.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
namespace Tests\Browser;
|
||||
|
||||
use Tests\DuskTestCase;
|
||||
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
||||
|
||||
class NotesTest extends DuskTestCase
|
||||
{
|
||||
/**
|
||||
* Look for the client name after the note.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_client_name_displayed()
|
||||
{
|
||||
$this->browse(function ($browser) {
|
||||
$browser->visit('/notes/D')
|
||||
->assertSee('JBL5');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Look for the client URL after the note.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_client_url_displayed()
|
||||
{
|
||||
$this->browse(function ($browser) {
|
||||
$browser->visit('/notes/E')
|
||||
->assertSee('quill.p3k.io');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue