for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hipanel\modules\finance\tests\acceptance\client;
use hipanel\helpers\Url;
use hipanel\tests\_support\Page\IndexPage;
use hipanel\tests\_support\Page\Widget\Input\Input;
use hipanel\tests\_support\Page\Widget\Input\Select2;
use hipanel\tests\_support\Step\Acceptance\Client;
class BillCest
{
/**
* @var IndexPage
*/
private $index;
public function _before(Client $I)
$this->index = new IndexPage($I);
}
public function ensureIndexPageWorks(Client $I)
$I->login();
$I->needPage(Url::to('@bill/index'));
$I->see('Bills', 'h1');
$I->seeLink('Recharge account', Url::to('@pay/deposit'));
$this->ensureICanSeeAdvancedSearchBox();
$this->ensureICanSeeBulkBillSearchBox();
private function ensureICanSeeAdvancedSearchBox()
$this->index->containsFilters([
new Input('Currency'),
new Input('Type'),
new Input('Servers'),
new Input('Description'),
new Select2('Tariff'),
]);
private function ensureICanSeeBulkBillSearchBox()
$this->index->containsColumns([
'Time',
'Sum',
'Balance',
'Type',
'Description',