public function _before(AcceptanceTester $I) { $I->checkIfLogin($I); $this->faker = Factory::create(); }
<?php $I = new AcceptanceTester($scenario); $I->checkIfLogin($I); $I->wantTo('Test all pages load'); // Top level navigation $I->amOnPage('/dashboard'); $I->see('Total Revenue'); $I->amOnPage('/clients'); $I->see('Clients', 'li'); $I->amOnPage('/clients/create'); $I->see('Clients', 'li'); $I->see('Create'); $I->amOnPage('/credits'); $I->see('Credits', 'li'); $I->amOnPage('/credits/create'); $I->see('Credits', 'li'); $I->see('Create'); $I->amOnPage('/tasks'); $I->see('Tasks', 'li'); $I->amOnPage('/tasks/create'); $I->see('Tasks', 'li'); $I->see('Create'); $I->amOnPage('/invoices'); $I->see('Invoices', 'li'); $I->amOnPage('/invoices/create'); $I->see('Invoices', 'li'); $I->see('Create'); $I->amOnPage('/quotes'); $I->see('Quotes', 'li'); $I->amOnPage('/quotes/create');