2016-10-23 15:37:10 +00:00
|
|
|
<?php
|
|
|
|
class C04_Station_ReportsCest extends CestAbstract
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @before setupComplete
|
|
|
|
* @before login
|
|
|
|
*/
|
|
|
|
public function viewReports(FunctionalTester $I)
|
|
|
|
{
|
|
|
|
$I->wantTo('View station reports.');
|
|
|
|
|
2017-08-17 18:28:48 +00:00
|
|
|
$station_id = $this->test_station->getId();
|
2016-10-23 15:37:10 +00:00
|
|
|
|
2018-09-29 14:04:33 +00:00
|
|
|
$I->amOnPAge('/station/'.$station_id.'/reports/overview');
|
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('Statistics Overview');
|
|
|
|
|
2016-10-23 15:37:10 +00:00
|
|
|
$I->amOnPage('/station/'.$station_id.'/reports/timeline');
|
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
2018-02-14 14:55:59 +00:00
|
|
|
$I->see('Song Playback Timeline');
|
2016-10-23 15:37:10 +00:00
|
|
|
|
|
|
|
$I->amOnPage('/station/'.$station_id.'/reports/performance');
|
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('Song Listener Impact');
|
|
|
|
|
|
|
|
$I->amOnPage('/station/'.$station_id.'/reports/duplicates');
|
|
|
|
|
|
|
|
$I->seeResponseCodeIs(200);
|
|
|
|
$I->see('No duplicates were found. Nice work!');
|
2018-09-29 14:04:33 +00:00
|
|
|
|
|
|
|
$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');
|
2016-10-23 15:37:10 +00:00
|
|
|
}
|
|
|
|
}
|