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


PHP AcceptanceTester::dontSee方法代码示例

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


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

示例1: it_prevents_guests_from_seeing_profiles

 public function it_prevents_guests_from_seeing_profiles(AcceptanceTester $I)
 {
     $user = $this->userActor->create();
     $I->amOnRoute('profile.show', $user->username);
     $I->seeInCurrentUrl('auth/login');
     $I->seeCurrentRouteIs('auth.login');
     $I->dontSee('Profile of user');
 }
开发者ID:v-radev,项目名称:laravel-auth-pack,代码行数:8,代码来源:ProfileAcceptanceCest.php

示例2: isNotEditedPost

 public function isNotEditedPost(AcceptanceTester $I, UserSteps $userSteps)
 {
     $I->wantTo('check history for post which is not edited');
     $userId = $userSteps->amRegularUser();
     $catId = $userSteps->haveCategory();
     $post = new Posts(['title' => 'Some title', 'content' => 'Some content.', 'users_id' => $userId, 'categories_id' => $catId]);
     $I->amOnPage("/discussion/{$post->id}/some-title");
     $I->dontSee('edited');
 }
开发者ID:phalcon,项目名称:forum,代码行数:9,代码来源:PostHistoryCept.php

示例3: checkFrontPageTest

 /**
  * Check the homepage
  *
  * @param \AcceptanceTester $I
  */
 public function checkFrontPageTest(\AcceptanceTester $I)
 {
     $I->wantTo('see that the homepage works.');
     $I->amOnPage('/');
     $I->see('A sample site');
     $I->see('Recent Pages');
     $I->dontSee('Recent Resources');
     $I->see('A Page I Made', 'h1');
     $I->see('Built with Bolt, tested with Codeception', 'footer');
 }
开发者ID:archayl,项目名称:bolt,代码行数:15,代码来源:FrontendCest.php

示例4: i_can_click_name_grid_item

 public function i_can_click_name_grid_item(\AcceptanceTester $I)
 {
     $I->clickNode('#model0-node');
     $I->click('.dvs-sidebar-elements button');
     $I->waitForElement('#dvs-sidebar-field-form', 5);
     $I->see('Max Length');
     $I->click('a[data-breadcrumb-id="0"]');
     $I->wait(1);
     $I->dontSee('Max Length');
 }
开发者ID:alpas29,项目名称:cms,代码行数:10,代码来源:EditPageVersionModelCest.php

示例5: deleteNewsTickConfirmation

 /**
  * @depends deleteNewsNoTickConfirmation
  */
 public function deleteNewsTickConfirmation(AcceptanceTester $I)
 {
     $I->logInAsAnAdmin();
     $I->amOnListNews();
     $I->click('Edit');
     $I->waitForText('Edit news item');
     $I->seeInCurrentUrl('/edit_news');
     $I->checkOption('#delete_confirmation');
     $I->click('Delete news item');
     $I->seeInCurrentUrl('/list_news');
     $I->dontSee('Edit');
 }
开发者ID:aallen,项目名称:mellivora,代码行数:15,代码来源:ManageNewsCest.php

示例6: i_can_click_each_grid_item

 public function i_can_click_each_grid_item(\AcceptanceTester $I)
 {
     $I->clickNode('#creatorcreator-933e76acb06dec2ba6c31ba9c058a4e9-node');
     $I->click('button[data-creator-attribute-name="Name"]');
     $I->waitForElement('#dvs-sidebar-field-form', self::WAIT_TIME);
     $I->see('Max Length');
     $I->click('a[data-breadcrumb-id="0"]');
     $I->wait(1);
     $I->dontSee('Max Length');
     $I->click('button[data-creator-attribute-name="Email"]');
     $I->waitForElement('#dvs-sidebar-field-form', self::WAIT_TIME);
     $I->see('Max Length');
     $I->click('a[data-breadcrumb-id="0"]');
     $I->wait(1);
     $I->dontSee('Max Length');
     $I->click('button[data-creator-attribute-name="Password"]');
     $I->waitForElement('#dvs-sidebar-field-form', self::WAIT_TIME);
     $I->see('Max Length');
     $I->click('a[data-breadcrumb-id="0"]');
     $I->wait(1);
     $I->dontSee('Max Length');
 }
开发者ID:alpas29,项目名称:cms,代码行数:22,代码来源:CreateNewUserCest.php

示例7: dashboardWithoutPermissionRedirectsToHomepageTest

 /**
  * Test that a user with no access rights to Dashboard gets redirected to
  * the hmoepage.
  *
  * Inspired by the Atari game Lemmings and the Eddie Vedder commment:
  * "Longest song title in the Pearl Jam catalogue", referencing the song
  * "Elderly Woman Behind the Counter in a Small Town", and the name of the
  * particular unit test method until Bolt 2.3…
  *
  * @param \AcceptanceTester $I
  */
 public function dashboardWithoutPermissionRedirectsToHomepageTest(\AcceptanceTester $I)
 {
     $I->wantTo('Set permissions/global/dashboard to empty and be redirected to the homepage');
     // 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/file/edit/config/permissions.yml');
     $yaml = $I->getLemmingsPermissions();
     $I->fillField('#form_contents', $yaml);
     $token = $I->grabValueFrom('#form__token');
     $I->sendAjaxPostRequest('/bolt/file/edit/config/permissions.yml', ['form[_token]' => $token, 'form[contents]' => $yaml]);
     // Verify we go to the dashboard and end up on the homepage
     $I->amOnPage('/bolt');
     $I->see('A sample site');
     $I->see('Recent Pages');
     $I->dontSee('Recent Resources');
     $I->see('A Page I Made', 'h1');
     $I->see('Built with Bolt, tested with Codeception', 'footer');
 }
开发者ID:d-m-,项目名称:bolt,代码行数:30,代码来源:BackendLemmingsCest.php

示例8:

//click create
// Read
$I->amOnPage('/blog');
$I->see('Blog Post Title');
$I->click("a[href='http://reoc.lo/blog/blog-post-title.html']");
//click create
$I->see('Blog Post Title', 'h1');
$I->see('This is my test post on my Blog');
$I->see("comments powered by Disqus");
// Delete BLOG
$I->amOnPage('/oc-panel/Blog/');
$I->see('Blog Post Title');
$I->click('.btn.btn-danger.index-delete');
sleep(1);
$I->amOnPage('/oc-panel/Blog/');
$I->dontSee('Blog Post Title');
$I->amOnPage('/blog');
$I->dontSee('Blog Post Title');
$I->amOnPage('/oc-panel/Config/update/blog');
$I->fillField("#formorm_config_value", '0');
$I->click("//button[@type='submit']");
//click save
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/');
$I->dontSeeElement('a', ['href' => 'http://reoc.lo/blog']);
$I->amOnPage('/oc-panel/Config/update/blog_disqus');
$I->fillField('#formorm_config_value', '');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
// Disqus for FAQ
$I->amOnPage('/oc-panel/Config/update/faq_disqus');
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:CommentsConfigurationCept.php

示例9:

$I->am('a visitor');
$I->wantTo('publish a new ad');
$I->amOnPage('publish-new.html');
$I->see('Publish new advertisement', 'h1');
$I->fillField('#title', 'New ad');
$I->click('.select-category');
$I->fillField('category', '18');
$I->fillField('location', '4');
$I->fillField('#description', 'This is a new ad');
$I->attachFile('input[type="file"]', 'photo.jpg');
$I->fillField('#phone', '99885522');
$I->fillField('#address', 'barcelona');
$I->fillField('#price', '25');
$I->fillField('#website', 'https://www.google.com');
$I->fillField('#name', 'David');
$I->fillField('#email', 'david@gmail.com');
$I->click('submit_btn');
$I->see('Advertisement is posted. Congratulations!');
$I->amOnPage('/apartment/new-ad.html');
$I->see('New ad', 'h1');
$I->see('25.00', 'span');
$I->see('Phone: 99885522', 'a');
$I->see('This is a new ad');
$I->see('Barcelona');
$I->seeElement('a', ['href' => 'http://reoc.lo/user/david']);
$I->seeElement('a', ['href' => 'https://www.google.com']);
// Check if user has created
$I->amOnPage('/user/david');
$I->see('David', 'h3');
$I->dontSee('Page not found');
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:30,代码来源:PublishNewAsUnregisterCept.php

示例10: array

$I->see('welcome admin');
// search_multi_catloc
$I->amOnPage('/oc-panel/Config/update/search_multi_catloc');
$I->fillField('#formorm_config_value', '1');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/search.html');
$I->see('Search', 'h1');
$I->selectOption('form select[id=category]', array('Jobs', 'House'));
$I->click("submit");
$I->see('title for the ad', 'a');
$I->see('just random title here', 'a');
$I->see('another great title', 'a');
$I->see('some nice title here', 'a');
$I->amOnPage('/search.html');
$I->see('Search', 'h1');
$I->selectOption('form select[id=location]', array('London', 'Madrid'));
$I->click("submit");
$I->dontSee('title for the ad', 'a');
$I->dontSee('just random title here', 'a');
$I->see('another great title', 'a');
$I->see('some nice title here', 'a');
$I->amOnPage('/oc-panel/Config/update/search_multi_catloc');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/search.html?title=&category[]=house&category[]=jobs&price-min=&price-max=&submit=');
$I->seeElement('div', ['id' => 'kohana_error']);
$I->amOnPage('/search.html?title=&location[]=madrid&location[]=london&price-min=&price-max=&submit=');
$I->seeElement('div', ['id' => 'kohana_error']);
$I->amOnPage('/');
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:31,代码来源:MultiCategoryLocationSearchCept.php

示例11: deniedPublishPagesTest

 /**
  * Check that the editor can't publish Entries
  *
  * @param \AcceptanceTester $I
  */
 public function deniedPublishPagesTest(\AcceptanceTester $I)
 {
     $I->wantTo("be denied permission to publish Pages as the 'editor' 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/1');
     $I->see('Actions for this Page');
     // Make sure the page cannot be published by setting its status
     $I->seeInField('#statusselect', 'draft');
     $I->dontSeeInField('#statusselect', 'published');
     // Save the page and return to the overview
     $I->click('Save & return to overview');
     $I->see('Actions for Pages');
     // Check the 'Publish page' context menu option isn't shown
     $I->dontSee('Publish Page');
     // Check the 'Duplicate page' context menu option is shown
     $I->see('Duplicate Page');
 }
开发者ID:peteryu1,项目名称:bolt,代码行数:24,代码来源:BackendEditorCest.php

示例12: it_validates_name_regex

 public function it_validates_name_regex(AcceptanceTester $I)
 {
     //^[A-Za-z]'?[-\. a-zA-Z]+$
     $field = 'name';
     $error = 'The name format is invalid.';
     //Starts with letter
     $I->amOnRoute(RegisterPage::$ROUTE);
     $I->fillField($field, '1');
     $I->submitForm(RegisterPage::$formId, [], 'Register');
     $I->see($error);
     //Can have space
     $I->amOnRoute(RegisterPage::$ROUTE);
     $I->fillField($field, 'aa aa');
     $I->submitForm(RegisterPage::$formId, [], 'Register');
     $I->dontSee($error);
     //Can have symbols
     $I->amOnRoute(RegisterPage::$ROUTE);
     $I->fillField($field, 'aa-.');
     $I->submitForm(RegisterPage::$formId, [], 'Register');
     $I->dontSee($error);
 }
开发者ID:v-radev,项目名称:laravel-auth-pack,代码行数:21,代码来源:RegisterAcceptanceCest.php

示例13: AcceptanceTester

<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('see note can not be deleted by not an owner');
$I->testLogin();
$I->amOnPage('/notes/5/delete');
$I->dontSee('Yes, I want to delete this note');
开发者ID:martinmayer,项目名称:notejam,代码行数:7,代码来源:DeleteOtherOwnersNoteCept.php

示例14: AcceptanceTester

<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('see note can be successfully deleted');
$I->testLogin();
$I->amOnPage('/notes/1/delete');
$I->click('Yes, I want to delete this note');
$I->dontSee('Note 1');
开发者ID:martinmayer,项目名称:notejam,代码行数:8,代码来源:DeleteNoteCept.php

示例15:

$I->am("the admin");
$I->wantTo('change configurations and see changes on frontend');
$I->amOnPage('/oc-panel/auth/login');
$I->fillField('email', 'admin@reoc.lo');
$I->fillField('password', '1234');
$I->click('auth_redirect');
$I->amOnPage('/oc-panel/');
$I->see('welcome admin');
// Address
$I->amOnPage('/oc-panel/Config/update/address');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
//Read
$I->amOnPage('/publish-new.html');
$I->dontSee('Address', 'label');
$I->dontSeeElement('input', ['name' => 'address']);
// Back to default
$I->amOnPage('/oc-panel/Config/update/address');
$I->fillField('#formorm_config_value', '1');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/publish-new.html');
$I->see('Address', 'label');
$I->seeElement('input', ['name' => 'address']);
// Phone
$I->amOnPage('/oc-panel/Config/update/phone');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
//Read
开发者ID:kleitz,项目名称:openclassifieds2,代码行数:31,代码来源:AdvertisementFieldsCept.php


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