Skip to content

Commit 390d8e4

Browse files
committed
Revert "Remove flakey test"
This reverts commit b22342f.
1 parent b22342f commit 390d8e4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Feature/Http/ImportControllerTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ class ImportControllerTest extends TestCase
1212
{
1313
use RefreshDatabase;
1414

15+
public function test_import_scrapes_from_url(): void
16+
{
17+
$membership = $this->setupBarMembership();
18+
$this->actingAs($membership->user);
19+
20+
$this->withHeader('Bar-Assistant-Bar-Id', (string) $membership->bar_id);
21+
$response = $this->postJson('/api/import/scrape', [
22+
'source' => 'https://barassistant.app'
23+
]);
24+
25+
$response->assertSuccessful();
26+
}
27+
1528
public function test_import_cocktail(): void
1629
{
1730
$membership = $this->setupBarMembership();

0 commit comments

Comments
 (0)