Try using specific css selector

This commit is contained in:
Jonny Barnes 2017-02-21 18:01:48 +00:00
parent 7ee08ee0d4
commit 07ad894b66

View file

@ -26,7 +26,7 @@ class MicropubClientTest extends DuskTestCase
$note = $faker->text; $note = $faker->text;
$this->browse(function ($browser) use ($note) { $this->browse(function ($browser) use ($note) {
$browser->visit('/micropub/create') $browser->visit('/micropub/create')
->type('content', $note) ->type('textarea[name="content"]', $note)
->press('submit'); ->press('submit');
sleep(2); sleep(2);
$this->assertDatabaseHas('notes', ['note' => $note]); $this->assertDatabaseHas('notes', ['note' => $note]);