2016-10-23 17:37:10 +02:00
|
|
|
<?php
|
2020-01-18 03:35:09 +01:00
|
|
|
|
2022-03-17 01:04:40 +01:00
|
|
|
namespace Functional;
|
|
|
|
|
2021-06-12 10:40:01 +02:00
|
|
|
class Station_ReportsCest extends CestAbstract
|
2016-10-23 17:37:10 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @before setupComplete
|
|
|
|
* @before login
|
|
|
|
*/
|
2022-03-17 01:04:40 +01:00
|
|
|
public function viewReports(\FunctionalTester $I): void
|
2016-10-23 17:37:10 +02:00
|
|
|
{
|
|
|
|
$I->wantTo('View station reports.');
|
|
|
|
|
2020-06-26 22:22:53 +02:00
|
|
|
$testStation = $this->getTestStation();
|
|
|
|
$station_id = $testStation->getId();
|
2016-10-23 17:37:10 +02:00
|
|
|
|
2020-01-18 03:35:09 +01:00
|
|
|
$I->amOnPAge('/station/' . $station_id . '/reports/overview');
|
2018-09-29 16:04:33 +02:00
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('Statistics Overview');
|
|
|
|
|
2020-01-18 03:35:09 +01:00
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/timeline');
|
2016-10-23 17:37:10 +02:00
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
2018-02-14 15:55:59 +01:00
|
|
|
$I->see('Song Playback Timeline');
|
2016-10-23 17:37:10 +02:00
|
|
|
|
2020-01-18 03:35:09 +01:00
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/performance');
|
2016-10-23 17:37:10 +02:00
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('Song Listener Impact');
|
|
|
|
|
2020-01-18 03:35:09 +01:00
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/requests');
|
2018-09-29 16:04:33 +02:00
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('Song Requests');
|
|
|
|
|
2020-01-18 03:35:09 +01:00
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/listeners');
|
2018-09-29 16:04:33 +02:00
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('Listeners');
|
2020-12-14 19:15:07 +01:00
|
|
|
|
|
|
|
$I->amOnPage('/station/' . $station_id . '/reports/soundexchange');
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('SoundExchange Report');
|
2016-10-23 17:37:10 +02:00
|
|
|
}
|
|
|
|
}
|