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


PHP AcceptanceTester::dontsee方法代码示例

本文整理汇总了PHP中AcceptanceTester::dontsee方法的典型用法代码示例。如果您正苦于以下问题:PHP AcceptanceTester::dontsee方法的具体用法?PHP AcceptanceTester::dontsee怎么用?PHP AcceptanceTester::dontsee使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AcceptanceTester的用法示例。


在下文中一共展示了AcceptanceTester::dontsee方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: savePostInNewGroupOnCard

 private function savePostInNewGroupOnCard(\AcceptanceTester $I)
 {
     $I->wantTo('save post in new group on card');
     $I->amOnPage('/');
     $I->click('.new.btn-default');
     $I->waitForElement('.save[data-id="600"]', 10);
     $I->click('.save[data-id="600"]');
     $I->waitForElement('a.create-save', 10);
     $I->see('group-3 for user 100');
     $I->click('a.create-save');
     $I->waitForElement('form.savegroup-create', 10);
     $I->fillField('form.savegroup-create input[name="name"]', 'yay');
     $I->click('form.savegroup-create .btn-primary');
     $I->waitForElementNotVisible('form.savegroup-create', 10);
     $I->amOnPage('/user1/savegroups');
     $I->waitForText('yay', 10);
     $I->amOnPage('/user1/savegroups/yay');
     $I->waitForElement('.post[data-id="600"]', 10);
     $I->click('a.edit-savegroups');
     $I->waitForElement('button.delete-savegroups', 10);
     $I->click('button.delete-savegroups');
     $I->waitForElement('#modal-3 .btn-primary', 10);
     $I->click('#modal-3 .btn-primary');
     $I->waitForElementNotVisible('#modal-3 .btn-primary', 10);
     $I->amOnPage('/user1/savegroups');
     $I->waitForText('Uncategorized', 10);
     $I->dontsee('yay');
     // delete post 600 in group 500
     //$this->db->real_query('DELETE FROM `shoppyst`.`save_group_post` WHERE `save_group_post`.`save_group_id` = 500 AND `save_group_post`.`post_id` = 600');
 }
开发者ID:bbig979,项目名称:shoppyst,代码行数:30,代码来源:TKPostCest.php

示例2:

$I->fillField('#description', 'This is my New Updated Topic');
$I->click("submit");
//click Update
$I->see('Topic is updated.');
$I->amOnPage('/forum/my-forum/my-new-topic.html');
$I->see('My Updated Topic', 'h1');
$I->see('This is my New Updated Topic');
$I->see('This is my reply on the New Topic!');
// Delete
//$I->amOnPage('/oc-panel/topic');
//$I->click(".btn.btn-danger.index-delete"); //Delete Reply
$I->amOnPage('/oc-panel/forum/index');
$I->click(".drag-action.index-delete");
//Delete Forum
$I->amOnPage('/forum');
$I->dontsee('My Forum');
$I->amOnPage('/oc-panel/Config/update/forums');
$I->fillField("#formorm_config_value", '0');
// Deactivates forums
$I->click("//button[@type='submit']");
//click save
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/');
$I->dontSeeElement('.glyphicon.glyphicon-tag');
/////////////////////////////////////////////////////////////////
// activate faq from settings -> general -> all configurations
$I->wantTo('activate faq');
$I->amOnPage('/oc-panel/Config/update/faq');
$I->fillField("#formorm_config_value", '1');
$I->click("//button[@type='submit']");
//click save
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:BlogForumsFaqCept.php

示例3: AcceptanceTester

<?php

$I = new AcceptanceTester($scenario);
$I->am('a visitor');
$I->amGoingTo('visit and view a single ad');
$I->lookForwardTo('some details');
$I->amOnPage('/');
$I->click("//a[@href='http://reoc.lo/all']");
$I->click("//a[@class='pull-left']");
$I->see('send message');
$I->dontsee('listings');
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:11,代码来源:ViewSingleAdCept.php

示例4: AcceptanceTester

<?php

$I = new AcceptanceTester($scenario);
$I->am('the administrator');
$I->wantTo('edit a user');
$I->login_admin();
$I->amOnPage('/oc-panel/User/update/4');
$I->fillField('#formorm_name', 'Michael');
$I->fillField('#formorm_email', 'michael@gmail.com');
$I->fillField('#formorm_description', 'Updated user description');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/user/john-smith');
$I->see('Updated user description');
$I->see('Michael');
$I->amOnPage('/oc-panel/User/update/4');
$I->fillField('#formorm_name', 'John Smith');
$I->fillField('#formorm_email', 'john@gmail.com');
$I->fillField('#formorm_description', '');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/user/john-smith');
$I->dontsee('Updated user description');
$I->see('John Smith');
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:24,代码来源:EditUsersCept.php

示例5:

$I->lookForwardTo('see the welcome message in the Panel');
$I->amOnPage('/oc-panel/auth/login');
$I->fillField('email', 'admin@reoc.lo');
$I->fillField('password', '1234');
$I->click('auth_redirect');
$I->see('welcome admin');
$I->wantTo('switch ON "only administrator can publish new ad"');
$I->amOnPage('/oc-panel/settings/form');
$I->see('Advertisement Configuration', 'h1');
$I->checkOption("#only_admin_post");
$I->click("submit");
//click save
$I->wantTo('logout and not to see publish new button');
$I->click("//a[@href='http://reoc.lo/oc-panel/auth/logout']");
$I->amOnPage('/');
$I->dontsee('publish new');
// bring it back to default option!
// login
$I->amOnPage('/oc-panel/auth/login');
$I->fillField('email', 'admin@reoc.lo');
$I->fillField('password', '1234');
$I->click('auth_redirect');
// switch off only administrator can publish new ad
$I->amOnPage('/oc-panel/settings/form');
$I->see('Advertisement Configuration', 'h1');
$I->click("only_admin_post");
$I->click("submit");
//click save
// logout and check if i can see publish new button
$I->click("//a[@href='http://reoc.lo/oc-panel/auth/logout']");
$I->see('login');
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:31,代码来源:OnlyAdminCanPostCept.php


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