Skip to content

Commit 99eed09

Browse files
committed
Add test for purchasing a product
1 parent 09eff16 commit 99eed09

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/Browser/BuyProductTest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Tests\Browser;
4+
5+
use Illuminate\Foundation\Testing\DatabaseMigrations;
6+
use Laravel\Dusk\Browser;
7+
use Tests\DuskTestCase;
8+
9+
class BuyProductTest extends DuskTestCase
10+
{
11+
/**
12+
* A Dusk test example.
13+
*
14+
* @return void
15+
*/
16+
public function testExample()
17+
{
18+
$this->browse(function (Browser $browser) {
19+
$browser->visit('/')
20+
->assertSee('Laravel');
21+
});
22+
}
23+
}

0 commit comments

Comments
 (0)