loadSessionSnapshot('login')) return; $I->amOnPage('/login'); $I->fillField(['name' => 'email'], Fixtures::get('username')); $I->fillField(['name' => 'password'], Fixtures::get('password')); $I->click('Let\'s go'); //$I->saveSessionSnapshot('login'); } function selectDataPicker(\AcceptanceTester $I, $element, $date = 'now') { $_date = date('Y, m, d', strtotime($date)); $I->executeJS(sprintf('$(\'%s\').datepicker(\'update\', new Date(%s))', $element, $_date)); } function selectDropdown(\AcceptanceTester $I, $option, $dropdownSelector) { $I->click($dropdownSelector); $I->click(sprintf('ul.typeahead li[data-value="%s"]', $option)); } function selectDropdownRow(\AcceptanceTester $I, $option, $dropdownSelector) { $I->click("$dropdownSelector span.dropdown-toggle"); $I->click("$dropdownSelector ul li:nth-child($option)"); } }