See if a sleep allows us to find the new note in the database

This commit is contained in:
Jonny Barnes 2017-02-20 16:54:07 +00:00
parent 9b0108a7d6
commit a69a7f9a50

View file

@ -28,6 +28,7 @@ class MicropubClientTest extends DuskTestCase
$browser->visit('/micropub/create') $browser->visit('/micropub/create')
->type('content', $note) ->type('content', $note)
->press('submit'); ->press('submit');
sleep(2);
$this->assertDatabaseHas('notes', ['note' => $note]); $this->assertDatabaseHas('notes', ['note' => $note]);
}); });
//reset database //reset database