jonnybarnes.uk/tests/Browser/NotesTest.php

35 lines
676 B
PHP
Raw Normal View History

2017-02-18 16:38:18 +00:00
<?php
namespace Tests\Browser;
use Tests\DuskTestCase;
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')
2023-04-20 17:34:06 +01:00
->assertSee('JBL5');
2017-02-18 16:38:18 +00:00
});
}
/**
* Look for the client URL after the note.
*
* @return void
*/
public function test_client_url_displayed()
{
$this->browse(function ($browser) {
$browser->visit('/notes/E')
2023-04-20 17:34:06 +01:00
->assertSee('quill.p3k.io');
2017-02-18 16:38:18 +00:00
});
}
}