Drop create note test to check syndication test

This commit is contained in:
Jonny Barnes 2017-02-23 09:15:25 +00:00
parent 2ef6b93117
commit ef50b48b31
2 changed files with 3 additions and 11 deletions

View file

@ -16,6 +16,5 @@ class VerifyCsrfToken extends BaseVerifier
'api/post',
'webmention',
'places/new',
'micropub'
];
}

View file

@ -20,19 +20,12 @@ class MicropubClientTest extends DuskTestCase
});
}
public function test_client_page_creates_new_note()
public function test_client_page_updates_syndication()
{
$faker = \Faker\Factory::create();
$note = $faker->text;
$this->browse(function ($browser) use ($note) {
$browser->visit(route('micropub-client'))
->type('textarea[name="content"]', $note)
->press('submit');
sleep(2);
$this->assertDatabaseHas('notes', ['note' => $note]);
->clickLink('Refresh Syndication Targets')
->assertSee('jonnybarnes');
});
//reset database
$newNote = \App\Note::where('note', $note)->first();
$newNote->forceDelete();
}
}