Esempio n. 1
0
<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('see that the about page exists');
$I->amOnPage("/");

$I->seeResponseCodeIs(200);
$I->click('about', '#header');
$I->seeResponseCodeIs(200);
$I->canSeeInCurrentUrl('about');
$I->seeInTitle('about');
<?php
use Page\Acceptance\Home;

$I = new AcceptanceTester($scenario);
$I->wantTo('see that the vocabulary page exists');
$I->amOnPage(Home::$URL);

$I->click('//*[@id="panel_default"]/div/ul/li[2]/a');
$I->canSeeInCurrentUrl('vocabulary/list');
$I->seeInTitle('The Registry! :: Vocabularies :: List');

<?php
use Page\Acceptance\Home;

$I = new AcceptanceTester($scenario);
$I->wantTo('see that the agent list page exists');
$I->amOnPage(Home::$URL);

$I->click('//*[@id="panel_default"]/div/ul/li[1]/a');
$I->canSeeInCurrentUrl('agent/list');
$I->seeInTitle('The Registry! :: Owners :: List Owners');

Esempio n. 4
0
<?php
use Page\Acceptance\Home;

$I = new AcceptanceTester($scenario);
$I->wantTo('see that the login page exists');
$I->amOnPage(Home::$URL);

$I->click('//*[@id="header"]/ul/li[1]/a'); //login
$I->canSeeInCurrentUrl('login');
$I->seeInTitle('The Registry! :: sign in / register');

Esempio n. 5
0
 protected function stepCustomizer(AcceptanceTester $I)
 {
     Debug::debug('Viewing the theme Customizer ...');
     $I->canSeeInCurrentUrl('wp-admin/customize.php');
     $I->waitForElementVisible('.wp-pointer', 5);
     $I->canSee('Congratulations!');
     $I->cantSeeElement('.change-theme');
     $I->click('.wpem-pointer .button-primary');
     $I->canSeeElement('#wpem-overlay');
     $I->click('.wpem-overlay-control span');
     $I->cantSeeElement('#wpem-overlay');
     $I->click('.wpem-pointer .button-secondary');
     $I->cantSeeElement('.wp-pointer');
     $I->wait(1);
     $I->reloadPage();
     $I->waitForElementNotVisible('.wp-pointer', 5);
     $I->cantSee('Congratulations!');
     $I->cantSeeElement('.change-theme');
     $I->canSeeSetting('wpem_done', 1);
     $I->canSeeSetting('wpem_log');
 }
<?php
use Page\Acceptance\Home;

$I = new AcceptanceTester($scenario);
$I->wantTo('see that the home page exists');
$I->amOnPage(Home::$URL);
$I->seeInTitle(Home::$pageTitle);

$I->click('//*[@id="panel_default"]/div/ul/li[3]/a');
$I->canSeeInCurrentUrl('schema/list');
$I->seeInTitle('The Registry! :: Element Sets :: List');

Esempio n. 7
0
<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('add a meme');
$I->amOnPage('/');
$I->click('Dodaj');
$I->canSeeInCurrentUrl('/dodaj');
$I->see('Dodaj mem', 'h1');
//$I->attachFile('#memy_memebundle_meme_filename', 'testmeme.jpg');
$I->click('[type=submit]');
$I->dontSee('Mem został dodany', 'h1');
//to be continued
Esempio n. 8
0
<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('Validate the login function with zhaobing\' email and password! ');
$I->amOnPage('/');
$I->see('赵兵的电影');
$I->canSeeInCurrentUrl('/auth/login');
$I->fillField('email', '*****@*****.**');
$I->fillField('password', '123456');
$I->click('Login');
$I->seeCurrentUrlEquals('/movies');
$I->see('欢迎赵兵登录');