本文整理汇总了PHP中WebGuy::see方法的典型用法代码示例。如果您正苦于以下问题:PHP WebGuy::see方法的具体用法?PHP WebGuy::see怎么用?PHP WebGuy::see使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WebGuy
的用法示例。
在下文中一共展示了WebGuy::see方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: gebruikerKoppelenAanCursus
/**
* Test for requirement 130 of SLC
* @param WebGuy $I [description]
*/
public function gebruikerKoppelenAanCursus(\WebGuy $I)
{
$I->amOnPage('/login');
$I->see('Uren');
$I->fillField('Username', 'slc');
$I->fillField('Password', 'slc');
$I->click('Login');
$I->amOnPage('/slc/3');
$I->amOnPage('/slc/3/course/students/1');
$I->click('Voeg toe');
$I->amOnPage('/slc/3/course/students/1');
$I->see('student');
}
示例2: profielInzienStudent
/**
* Test for requirement 50 of student
* @param WebGuy $I [description]
* @return [type] [description]
*/
public function profielInzienStudent(\WebGuy $I)
{
$I->amOnPage('/login');
$I->see('Uren');
$I->fillField('Username', 'student');
$I->fillField('Password', 'student');
$I->click('Login');
$I->amOnPage('/student/1');
$I->see('Student Page');
$I->wantTo('Profiel Inzien');
$I->click('Profiel');
$I->amOnPage('/student/1/profiel');
$I->see('student');
$I->see('I12R');
}
示例3: WebGuy
<?php
$I = new WebGuy($scenario);
$I->wantTo('ensure that contact works');
$I->amOnPage('?r=site/contact');
$I->see('Contact', 'h1');
$I->submitForm('#contact-form', []);
$I->see('Contact', 'h1');
$I->see('Name cannot be blank');
$I->see('Email cannot be blank');
$I->see('Subject cannot be blank');
$I->see('Body cannot be blank');
$I->see('The verification code is incorrect');
$I->submitForm('#contact-form', ['ContactForm[name]' => 'tester', 'ContactForm[email]' => 'tester.email', 'ContactForm[subject]' => 'test subject', 'ContactForm[body]' => 'test content', 'ContactForm[verifyCode]' => 'testme']);
$I->dontSee('Name cannot be blank', '.help-inline');
$I->see('Email is not a valid email address.');
$I->dontSee('Subject cannot be blank', '.help-inline');
$I->dontSee('Body cannot be blank', '.help-inline');
$I->dontSee('The verification code is incorrect', '.help-inline');
$I->submitForm('#contact-form', ['ContactForm[name]' => 'tester', 'ContactForm[email]' => 'tester@example.com', 'ContactForm[subject]' => 'test subject', 'ContactForm[body]' => 'test content', 'ContactForm[verifyCode]' => 'testme']);
$I->dontSeeElement('#contact-form');
$I->see('Thank you for contacting us. We will respond to you as soon as possible.');
示例4: WebGuy
<?php
$I = new WebGuy($scenario);
$I->wantTo('Ensure the subject page work');
$I->amOnPage('/leerjaar/1/onderwerp/3');
$I->see('PLAATJES');
$I->see('Categorie: Plaatjes');
$I->see('Test Plaatje 3');
$I->see('Test Plaatje 4');
示例5: WebGuy
<?php
$I = new WebGuy($scenario);
include 'constant.php';
$I->wantTo('Register new user');
$I->amOnPage("/");
$I->see('Registration');
$I->see('Login');
$I->see('Genre');
$I->see('Stations');
$I->click(Registration::$registrationlink);
$I->waitForText('Sign Up');
$I->see('Sign Up');
$I->seeElement(Registration::$username);
$I->seeElement(Registration::$emailField);
$I->seeElement(Registration::$passwordField);
$I->seeElement(Registration::$confirmPasswordField);
$I->seeElement(Registration::$registrationButton);
$I->fillField(Registration::$username, $username);
$I->fillField(Registration::$emailField, $email);
$I->fillField(Registration::$passwordField, $pass);
$I->fillField(Registration::$confirmPasswordField, $pass_conf);
$I->click(Registration::$registrationButton);
示例6: WebGuy
<?php
/**
* DefaultController Test
*
* @var $scenario \Codeception\Scenario
*
* @author Brett O'Donnell <cornernote@gmail.com>
* @author Zain Ul abidin <zainengineer@gmail.com>
* @copyright 2013 Mr PHP
* @link https://github.com/cornernote/yii-email-module
* @license BSD-3-Clause https://raw.github.com/cornernote/yii-email-module/master/LICENSE
*
* @package yii-email-module
*/
$I = new WebGuy($scenario);
$I->wantTo('ensure DefaultController works');
$I->amOnPage('email');
$I->see('You may use the following tools');
$I->click('Spool');
$I->see('Spools');
$I->click('Template');
$I->see('Templates');
$I->click('Email');
$I->see('You may use the following tools');
示例7: WebGuy
<?php
$I = new WebGuy($scenario);
$I->wantTo('base check rsg2-latest-images for picture ');
// Direct call
//$I->amOnPage('http://127.0.0.1/Joomla3x/index.php/rsg2-image-wall');
$I->amOnPage('/index.php/rsg2-image-wall');
$I->makeScreenshot('base-rsg2-image-wall');
// Where i want to be
$I->see('RSG2 image wall');
示例8: WebGuy
<?php
$I = new WebGuy($scenario);
/* Vendor login with wrong password fails */
$I->amOnPage('/signin');
$I->fillField('email', 'vendor1@example.com');
$I->fillField('password', 'wrongpassword');
$I->click('button.btn');
$I->see('Login incorrect', '.alert');
$I = new WebGuy($scenario);
/* Vendor login succeeds */
$I->fillField('email', 'vendor1@example.com');
$I->fillField('password', 'password');
$I->click('button.btn');
$I->see('Projects', 'h4');
/* Signout works */
$I->click('Sign Out');
$I->see('RFP-EZ Marketplace');
/* Officer login wrong password fails */
$I->amOnPage('/signin');
$I->fillField('email', 'officer1@example.gov');
$I->fillField('password', 'wrongpassword');
$I->click('button.btn');
$I->see('Login incorrect', '.alert');
/* Then officer login works */
$I->fillField('email', 'officer1@example.gov');
$I->fillField('password', 'password');
$I->click('button.btn');
$I->see('My Projects', 'h4');
示例9: WebGuy
<?php
$I = new WebGuy($scenario);
$I->wantTo('ensure that about works');
$I->amOnPage('?r=site/about');
$I->see('About', 'h1');
示例10: WebGuy
$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');
/* Officer login succeeds */
$I->fillField('email', 'officer1@example.gov');
$I->fillField('password', 'password');
$I->click('button.btn');
$I->see('My Projects', 'h4');
$I->amOnPage("/notifications");
$I->see("{$vendorName} has submitted a bid", ".line1");
$I->click("submitted a bid");
$I->see("Bid from", "h1");
$I->click("(view profile)");
$I->see("Contact Name");
$I->see("SAM.gov");
$I->see("DSBS");
$I->click('Projects');
$I->see('My Projects', 'h4');
$I->click('API for SBA.gov Dynamic Small Business Search');
$I->see('Bids awaiting review', 'h5');
$I->see($vendorName, '.bid[data-vendor-company-name=' . $vendorName . ']');
$I->click('a[href*=comments]');
$I->see('Add Comment', 'h5');
示例11: WebGuy
<?php
/**
* AuditFieldController Test
*
* @var $scenario \Codeception\Scenario
*
* @author Brett O'Donnell <cornernote@gmail.com>
* @author Zain Ul abidin <zainengineer@gmail.com>
* @copyright 2013 Mr PHP
* @link https://github.com/cornernote/yii-audit-module
* @license BSD-3-Clause https://raw.github.com/cornernote/yii-audit-module/master/LICENSE
*
* @package yii-audit-module
*/
$I = new WebGuy($scenario);
$I->wantTo('ensure AuditFieldController works');
$I->amOnPage('audit/field/index');
$I->see('Fields');
$I->see('Search');
示例12: WebGuy
*
* @var $scenario \Codeception\Scenario
*
* @author Brett O'Donnell <cornernote@gmail.com>
* @author Zain Ul abidin <zainengineer@gmail.com>
* @copyright 2013 Mr PHP
* @link https://github.com/cornernote/yii-account-module
* @license BSD-3-Clause https://raw.github.com/cornernote/yii-account-module/master/LICENSE
*
* @package yii-account-module
*/
$I = new WebGuy($scenario);
$I->wantTo('ensure AccountAccountController update works');
// check we are not logged in
$I->amOnPage('/');
$I->see('Hello guest');
// login
$I->amOnPage('/account/account/login');
$I->fillField('AccountLogin_username', 'admin');
$I->fillField('AccountLogin_password', 'admin');
$I->click('Login');
$I->see('You have successfully logged in.');
// update details with empty fields
$I->amOnPage('/account/account/update');
$I->fillField('AccountUpdate_first_name', '');
$I->fillField('AccountUpdate_last_name', '');
$I->fillField('AccountUpdate_email', '');
$I->fillField('AccountUpdate_username', '');
$I->click('Save');
$I->see('Please fix the following input errors:');
$I->see('Email cannot be blank.');
示例13: WebGuy
<?php
$I = new WebGuy($scenario);
$I->wantTo('be denied "publish" permissions on Pages as pagewriter user');
$I->loginAs($users['pagewriter']);
$I->see('New Page');
$I->click('New Page');
$I->see('Actions for this Page');
$I->fillField('title', 'A page I made');
$I->fillField('teaser', 'Woop woop woop! Crazy nice stuff inside!');
$I->fillField('body', 'Take it, take it! I have three more of these!');
// make sure the page cannot be published by setting its status in the
// edit form
$I->dontSeeInField('status', 'Published');
// let's save this page anyway, because we'll be needing it...
$I->click('Save Page');
// also check that the "publish page" context menu option isn't shown
$I->amOnPage('bolt');
$I->dontSee('Publish Page');
示例14: WebGuy
<?php
/**
*
* @var $scenario \Codeception\Scenario
*
* @author Brett O'Donnell <cornernote@gmail.com>
* @author Zain Ul abidin <zainengineer@gmail.com>
* @copyright 2013 Mr PHP
* @link https://github.com/cornernote/yii-audit-module
* @license BSD-3-Clause https://raw.github.com/cornernote/yii-audit-module/master/LICENSE
*
* @package yii-audit-module
*/
$I = new WebGuy($scenario);
$I->wantTo('ensure undefined variable is caught');
$I->amOnPage('site/undefinedVariable');
$I->see('PHP notice');
$I->see('Undefined variable: undefined_variable');
$I->canSeeInDatabase('audit_error', array('code' => '500', 'type' => 'PHP notice', 'message' => 'Undefined variable: undefined_variable'));
示例15: WebGuy
*
* @var $scenario \Codeception\Scenario
*
* @author Brett O'Donnell <cornernote@gmail.com>
* @author Zain Ul abidin <zainengineer@gmail.com>
* @copyright 2013 Mr PHP
* @link https://github.com/cornernote/yii-account-module
* @license BSD-3-Clause https://raw.github.com/cornernote/yii-account-module/master/LICENSE
*
* @package yii-account-module
*/
$I = new WebGuy($scenario);
$I->wantTo('ensure AccountAccountController sign up works');
// check we are not logged in
$I->amOnPage('/');
$I->see('Hello guest');
// check the form is there
$I->amOnPage('/account/account/signUp');
$I->see('First Name');
$I->see('Last Name');
$I->see('Email');
$I->see('Username');
$I->see('Password');
$I->see('Confirm Password');
// signup with empty details
$I->amOnPage('/account/account/signUp');
$I->click('Sign Up');
$I->see('Please fix the following input errors:');
$I->see('Email cannot be blank.');
$I->see('First Name cannot be blank.');
$I->see('Username cannot be blank.');