コード例 #1
0
ファイル: SanityCept.php プロジェクト: ajb/rfpez
$I->fillField('vendor[zip]', '01234');
$I->click('Create Profile');
$I->see($email, 'a.dropdown-toggle');
$I->click('Bids');
$I->see('My Bids');
$I->click('Account Settings');
$I->see('My Account');
$I->click('Projects');
$I->see('Projects', 'h4');
$I->click('API for SBA.gov Dynamic Small Business Search');
$I->see('Bids due in', 'h5');
/* Ask a qusetion */
$question = 'This is my question ' . time();
$I->submitForm('#ask-question-form', array('project_id' => $I->grabValueFrom("input[name=project_id]"), 'question' => $question));
$I->moveBack();
$I->reloadPage();
$I->see($question, '.question');
$I->click("Bid on this Contract");
$I->see("New Bid", "h5");
$I->fillField("bid[approach]", "Approach.");
$I->fillField("bid[previous_work]", "Previous work.");
$I->fillField("bid[employee_details]", "Employee details.");
$I->click("Submit Bid");
$I->see("Thanks for submitting your bid.");
$I->see("Approach.", 'p');
$I->see("Previous work.", 'p');
$I->see("Employee details.", 'p');
$I->click("Sign Out");
/** Officer Sanity **/
$I = new WebGuy($scenario);
$I->amOnPage('/signin');