48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Functional;
|
|
|
|
class Station_ReportsCest extends CestAbstract
|
|
{
|
|
/**
|
|
* @before setupComplete
|
|
* @before login
|
|
*/
|
|
public function viewReports(\FunctionalTester $I): void
|
|
{
|
|
$I->wantTo('View station reports.');
|
|
|
|
$testStation = $this->getTestStation();
|
|
$station_id = $testStation->getId();
|
|
|
|
$I->amOnPAge('/station/' . $station_id . '/reports/overview');
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
$I->see('Statistics Overview');
|
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/timeline');
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
$I->see('Song Playback Timeline');
|
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/performance');
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
$I->see('Song Listener Impact');
|
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/requests');
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
$I->see('Song Requests');
|
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/listeners');
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
$I->see('Listeners');
|
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/soundexchange');
|
|
$I->seeResponseCodeIs(200);
|
|
$I->see('SoundExchange Report');
|
|
}
|
|
}
|