AzuraCast/tests/Functional/Station_ProfileCest.php

39 lines
962 B
PHP
Raw Normal View History

2016-10-21 04:41:55 +00:00
<?php
namespace Functional;
class Station_ProfileCest extends CestAbstract
2016-10-21 04:41:55 +00:00
{
/**
* @before setupComplete
* @before login
*/
public function editStationProfile(\FunctionalTester $I): void
2016-10-21 04:41:55 +00:00
{
$I->wantTo('View and edit a station profile.');
2016-10-21 04:41:55 +00:00
$testStation = $this->getTestStation();
$station_id = $testStation->getId();
$I->amOnPage('/station/' . $station_id . '/profile');
2016-10-21 04:41:55 +00:00
$I->see('Functional Test Radio');
/*
* TODO: Implement acceptance testing with Vue rendering
$I->wantTo('Edit a station profile.');
$I->amOnPage('/station/' . $station_id . '/profile/edit');
2016-10-21 04:41:55 +00:00
$I->submitForm('.form', [
'name' => 'Profile Update Test Radio',
'description' => 'Testing a profile update.',
2016-10-21 04:41:55 +00:00
]);
$I->seeCurrentUrlEquals('/station/' . $station_id . '/profile');
2016-10-21 04:41:55 +00:00
$I->see('Profile Update Test Radio');
*/
2016-10-21 04:41:55 +00:00
}
}