当前位置: 首页>>代码示例>>PHP>>正文


PHP AcceptanceTester::seeInSource方法代码示例

本文整理汇总了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');
 }
开发者ID:d-m-,项目名称:bolt,代码行数:12,代码来源:FrontendCest.php

示例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');
 }
开发者ID:Boorj,项目名称:bolt,代码行数:34,代码来源:BackendEditorCest.php

示例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');
 }
开发者ID:atiarda,项目名称:bolt,代码行数:11,代码来源:FrontendCest.php

示例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.');
 }
开发者ID:atiarda,项目名称:bolt,代码行数:17,代码来源:BackendManagerCest.php

示例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>');
开发者ID:alex-k,项目名称:velotur,代码行数:14,代码来源:ApplyWLCept.php

示例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",');
开发者ID:oleksandr-torosh,项目名称:yona-cms,代码行数:12,代码来源:ApiCept.php


注:本文中的AcceptanceTester::seeInSource方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。