Drop create note test to check syndication test
This commit is contained in:
parent
2ef6b93117
commit
ef50b48b31
2 changed files with 3 additions and 11 deletions
|
@ -16,6 +16,5 @@ class VerifyCsrfToken extends BaseVerifier
|
|||
'api/post',
|
||||
'webmention',
|
||||
'places/new',
|
||||
'micropub'
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue