本文整理汇总了PHP中AcceptanceTester::seeInSource方法的典型用法代码示例。如果您正苦于以下问题:PHP AcceptanceTester::seeInSource方法的具体用法?PHP AcceptanceTester::seeInSource怎么用?PHP AcceptanceTester::seeInSource使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcceptanceTester
的用法示例。
在下文中一共展示了AcceptanceTester::seeInSource方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkContactPageTest
/**
* Check the contact page for templatefields
*
* @param \AcceptanceTester $I
*/
public function checkContactPageTest(\AcceptanceTester $I, \Codeception\Scenario $scenario)
{
$I->wantTo('see that the contact page and templatefields works');
$scenario->skip('Update Required');
$I->amOnPage('/contact');
$I->seeInSource('This is the contact text');
}
示例2: checkTemplateFieldsTest
/**
* Create a contact page with templatefields
*
* @param \AcceptanceTester $I
*/
public function checkTemplateFieldsTest(\AcceptanceTester $I, \Codeception\Scenario $scenario)
{
$I->wantTo('Create a contact page with templatefields');
// Set up the browser
$I->setCookie($this->tokenNames['authtoken'], $this->cookies[$this->tokenNames['authtoken']]);
$I->setCookie($this->tokenNames['session'], $this->cookies[$this->tokenNames['session']]);
$I->amOnPage('/bolt');
$I->see('New Page');
$I->click('New Page');
$I->fillField('#title', 'Contact Page');
$I->fillField('#slug', 'contact');
$I->selectOption('#template', 'extrafields.twig');
$I->click('Save Page', '#savecontinuebutton');
$I->see('The new Page has been saved.');
$I->click('CONTACT PAGE');
// Page has been saved, fill templatefields
$I->see('Template', 'a[data-toggle=tab]');
$I->fillField('#templatefields-section_1', 'This is the contact text');
$I->click('Save Page');
$I->click('CONTACT PAGE');
/*
* In v2.0.13 Codeception made the awesome decision to refactor their
* PHP Browser code — in a patch release no less — and it doesn't
* properly handle URL queries parameters in POSTs. For now we'll just
* pretend that seeing the data is good enough…
*/
$I->seeInSource('This is the contact text');
// $I->seeInField('#templatefields-section_1', 'This is the contact text');
}
示例3: checkContactPageTest
/**
* Check the contact page for templatefields
*
* @param \AcceptanceTester $I
*/
public function checkContactPageTest(\AcceptanceTester $I)
{
$I->wantTo('see that the contact page and templatefields works');
$I->amOnPage('/contact');
$I->seeInSource('This is the contact text');
}
示例4: publishContactPageTest
/**
* Publish the 'Contact' page.
*
* @param \AcceptanceTester $I
*/
public function publishContactPageTest(\AcceptanceTester $I)
{
$I->wantTo("Publish the 'Contact' page with 'templatefields' as 'manager' user");
// Set up the browser
$I->setCookie($this->tokenNames['authtoken'], $this->cookies[$this->tokenNames['authtoken']]);
$I->setCookie($this->tokenNames['session'], $this->cookies[$this->tokenNames['session']]);
$I->amOnPage('/bolt/editcontent/pages/3');
$I->seeInSource('This is the contact text');
$I->selectOption('#statusselect', 'published');
$I->click('Save', '#savecontinuebutton');
$I->see('The changes to the Page have been saved.');
}
示例5: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('Apply on the WL for tour 304');
$I->amOnPage('/apply.php?tourID=304');
$I->fillField('#formLoginEmail', 'alex@kochetov.com');
$I->fillField('#formLoginPassword', '123123');
$I->click('#formLoginSubmit');
$I->canSee('Вы собираетесь подать заявку');
$I->canSee('в СПИСОК ОЖИДАНИЯ');
$I->canSee('Замки Мозеля и Рейна');
$I->canSee('28.05.2016-05.06.2016');
$I->seeElement(['name' => 'formSubmit']);
$I->seeInSource('<input type=submit value="Подтверждаю" name=formSubmit class=input>');
示例6: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('Get response from api');
$I->amOnPage('/api');
$I->seeInSource('Welcome to api for yona-cms!');
$I->wantTo('Get page list from api');
$I->amOnPage('/api/page/list');
$I->seeInSource('"title":"Homepage"');
$I->wantTo('Get single page info from api');
$I->amOnPage('/api/page/get?pageId=1');
$I->seeInSource('metaDescription":"meta-description of homepage",');