2016-10-21 04:41:55 +00:00
|
|
|
<?php
|
2020-06-26 20:22:53 +00:00
|
|
|
|
2022-03-17 00:04:40 +00:00
|
|
|
namespace Functional;
|
|
|
|
|
2021-06-12 08:40:01 +00:00
|
|
|
class Station_ProfileCest extends CestAbstract
|
2016-10-21 04:41:55 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @before setupComplete
|
|
|
|
* @before login
|
|
|
|
*/
|
2022-03-17 00:04:40 +00:00
|
|
|
public function editStationProfile(\FunctionalTester $I): void
|
2016-10-21 04:41:55 +00:00
|
|
|
{
|
2018-09-29 14:04:33 +00:00
|
|
|
$I->wantTo('View and edit a station profile.');
|
2016-10-21 04:41:55 +00:00
|
|
|
|
2020-06-26 20:22:53 +00:00
|
|
|
$testStation = $this->getTestStation();
|
|
|
|
$station_id = $testStation->getId();
|
2016-10-23 15:37:10 +00:00
|
|
|
|
2020-06-26 20:22:53 +00:00
|
|
|
$I->amOnPage('/station/' . $station_id . '/profile');
|
2016-10-23 15:37:10 +00:00
|
|
|
|
2016-10-21 04:41:55 +00:00
|
|
|
$I->see('Functional Test Radio');
|
2021-10-23 17:11:20 +00:00
|
|
|
/*
|
|
|
|
* TODO: Implement acceptance testing with Vue rendering
|
2018-09-29 14:04:33 +00:00
|
|
|
$I->wantTo('Edit a station profile.');
|
2021-10-23 17:11:20 +00:00
|
|
|
|
|
|
|
|
2020-10-16 09:48:26 +00:00
|
|
|
$I->amOnPage('/station/' . $station_id . '/profile/edit');
|
2018-09-29 14:04:33 +00:00
|
|
|
|
2016-10-21 04:41:55 +00:00
|
|
|
$I->submitForm('.form', [
|
2017-08-13 10:07:22 +00:00
|
|
|
'name' => 'Profile Update Test Radio',
|
|
|
|
'description' => 'Testing a profile update.',
|
2016-10-21 04:41:55 +00:00
|
|
|
]);
|
|
|
|
|
2020-06-26 20:22:53 +00:00
|
|
|
$I->seeCurrentUrlEquals('/station/' . $station_id . '/profile');
|
2016-10-21 04:41:55 +00:00
|
|
|
|
|
|
|
$I->see('Profile Update Test Radio');
|
2021-10-23 17:11:20 +00:00
|
|
|
*/
|
2016-10-21 04:41:55 +00:00
|
|
|
}
|
|
|
|
}
|