Example #1
0
 /**
  * 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');
 }
Example #2
0
 /**
  * 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');
 }
Example #3
0
 /**
  * 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');
 }
Example #4
0
 /**
  * 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.');
 }
Example #5
0
<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('Apply on the WL for tour 304');
$I->amOnPage('/apply.php?tourID=304');
$I->fillField('#formLoginEmail', '*****@*****.**');
$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>');
Example #6
0
<?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",');