-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using @forelse to add message when the table has no resources to disp…
…lay (#267) Co-authored-by: Cristian Iosif <cristian.iosif@sware.com> Co-authored-by: Pascal Baljet <pascal@pascalbaljet.nl>
- Loading branch information
1 parent
178816f
commit b543f3e
Showing
6 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Tests\Browser\Table; | ||
|
||
use Laravel\Dusk\Browser; | ||
use Tests\DuskTestCase; | ||
|
||
/** | ||
* @group table | ||
*/ | ||
class EmptyTest extends DuskTestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
public function it_shows_a_text_when_no_results_have_been_found() | ||
{ | ||
$this->browse(function (Browser $browser) { | ||
$browser | ||
->visit('/table/empty/') | ||
->assertSee('There are no items to show.'); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters