Skip to content

Commit

Permalink
Update TableComponentTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frknasir authored Dec 25, 2023
1 parent 5d5b19b commit 5f5deeb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/Unit/TableComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
/** @var TestableLivewire $result */
$result = Livewire::test(TableTileComponent::class, ['position' => 'a1']);

$html = $result->lastRenderedDom;
$wireId = $result->id();

$result->assertViewHas('tableClass', DefaultTable::class)
->assertViewHas('refreshIntervalInSeconds', 300)
->assertViewHas('wireId', $wireId);

(new ViewAssertion($html))
->contains("Default Table Tile");
->assertViewHas('wireId', $wireId)
->assertSee("Default Table Tile");
});

0 comments on commit 5f5deeb

Please sign in to comment.