37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Tests\Browser;
|
|
|
|
use App\User;
|
|
use Tests\DuskTestCase;
|
|
use Laravel\Dusk\Browser;
|
|
|
|
class UserOrderSeatTest extends DuskTestCase
|
|
{
|
|
public function testOverview()
|
|
{
|
|
|
|
$this->browse(function (Browser $browser) {
|
|
$browser->visit('/programm')
|
|
->clickLink('Young Wood and Brass in Concert')
|
|
->clickLink('26. August 2017')
|
|
->click('#\31 _2') //Sitzplatz auswählen
|
|
->click('.content > form:nth-child(5) > input:nth-child(10)')
|
|
->click('.btn')
|
|
->type('email', 'test2@test.at')
|
|
->type('password', 'testtest')
|
|
->click('button.ui')
|
|
->clickLink('Logout')
|
|
->clickLink('Login')
|
|
->type('email', 'test@test.at')
|
|
->type('password', 'testtest')
|
|
->click('button.ui')
|
|
->visit('/admin/reservations')
|
|
->assertSee('Musterfrau')
|
|
->assertSee('Young Wood and Brass in Concert')
|
|
->pause(1000);
|
|
});
|
|
}
|
|
|
|
}
|