本文整理汇总了PHP中AcceptanceTester::seeInField方法的典型用法代码示例。如果您正苦于以下问题:PHP AcceptanceTester::seeInField方法的具体用法?PHP AcceptanceTester::seeInField怎么用?PHP AcceptanceTester::seeInField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcceptanceTester
的用法示例。
在下文中一共展示了AcceptanceTester::seeInField方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: saveCreateAuthuser
/**
* @depends openCreateAuthuser
*/
public function saveCreateAuthuser(AcceptanceTester $I)
{
$I->see('Создать');
$I->click('//button[contains(text(), "Создать")]');
$I->wait(1);
$I->see('Необходимо заполнить «ФИО сотрудника».');
$I->see('Необходимо заполнить «Логин сотрудника».');
$I->see('Необходимо заполнить «Пароль».');
$I->see('Необходимо заполнить «Подтвердите новый пароль».');
$I->fillField('Authuser[auth_user_fullname]', 'Иванов Иван Иванович');
$I->fillField('Authuser[auth_user_login]', 'IvanovII');
$I->fillField('Authuser[auth_user_password]', '123');
$I->fillField('Authuser[auth_user_password2]', '321');
$I->click('//button[contains(text(), "Создать")]');
$I->wait(1);
$I->see('Подтверждение пароля не совпадает');
$I->fillField('Authuser[auth_user_password]', '123');
$I->fillField('Authuser[auth_user_password2]', '123');
$I->click('//button[contains(text(), "Создать")]');
$I->wait(2);
$I->seeElement(['class' => 'authuser-form']);
$I->seeInField('Authuser[auth_user_fullname]', 'ИВАНОВ ИВАН ИВАНОВИЧ');
$I->seeInField('Authuser[auth_user_login]', 'IvanovII');
$I->seeElement('//div[@id="employeeauthusergrid_gw"]/descendant::div[text()="Ничего не найдено."]');
}
示例2: editCategoryNotVisibleTime
public function editCategoryNotVisibleTime(AcceptanceTester $I)
{
$I->logInAsAnAdmin();
$I->amOnEditCategory(CI_EDITABLE_CATEGORY_ID);
$title = time() . 'title';
$I->fillField('title', $title);
$I->checkOption('#exposed');
$from = date_time(time() - 10000);
$until = date_time(time() - 100);
$I->fillField('available_from', $from);
$I->fillField('available_until', $until);
$I->click('Save changes');
$I->waitForText('Edit category');
$I->seeCheckboxIsChecked('#exposed');
$I->seeInField('available_from', $from);
$I->seeInField('available_until', $until);
$I->amOnPage('/challenges');
$I->see($title);
$I->amOnPage('/challenges?category=' . to_permalink($title));
$I->see('Category unavailable');
$I->see('This category is not available. It is open from ' . $from);
$I->see('until ' . $until);
$I->amOnAdminHome();
$I->see($title);
}
示例3: editPost
private function editPost(\AcceptanceTester $I)
{
$I->amOnPage('/post/183/edit');
$I->waitForElement('.btn-primary', 10);
$I->seeOptionIsSelected('.form select[name="gid"]', 'group-1 for user 100');
$I->fillField('input[name="item-rating[2]"]', '');
$I->click('.form[role="edit-look"] .btn-primary');
$I->see("Item 3's store rating is required");
$I->click('//*[@id="items"]/div[2]/span');
$I->click('.form[role="edit-look"] .btn-primary');
$I->seeInField('//*[@id="items"]/div[2]/input[1]', 'post-183 item-370 rating-4 store-16');
$I->amOnPage('/post/183/edit');
$I->waitForElement('.btn-primary', 10);
$I->fillField('input[name="item-rating[2]"]', '5');
$I->selectOption('.form select[name="gid"]', 'Uncategorized');
$I->click('.form[role="edit-look"] .btn-primary');
$I->waitForElement('.alert-success', 10);
$I->amOnPage('/post/183/edit');
$I->waitForElement('input[name="item-rating[2]"]', 10);
$I->seeInField('input[name="item-rating[2]"]', '5');
$I->seeOptionIsSelected('.form select[name="gid"]', 'Uncategorized');
$I->fillField('input[name="item-rating[2]"]', '4');
$I->selectOption('.form select[name="gid"]', 'group-1 for user 100');
$I->click('.form[role="edit-look"] .btn-primary');
$I->waitForElement('.alert-success', 10);
$I->amOnPage('/post/183/edit');
$I->waitForElement('input[name="item-rating[2]"]', 10);
$I->seeInField('input[name="item-rating[2]"]', '4');
$I->seeOptionIsSelected('.form select[name="gid"]', 'group-1 for user 100');
}
示例4: saveUpdateReason
/**
* @depends openUpdateReason
*/
public function saveUpdateReason(AcceptanceTester $I)
{
$I->seeInField(['name' => 'Reason[reason_text]'], 'НЕИСПРАВЕН ВАЛ');
$I->fillField('Reason[reason_text]', 'Неисправен вал принтера');
$I->click('//button[contains(text(), "Обновить")]');
$I->wait(2);
$I->seeElement(['id' => 'reasongrid_gw']);
$I->see('НЕИСПРАВЕН ВАЛ ПРИНТЕРА');
}
示例5: saveUpdateMatvid
/**
* @depends openUpdateMatvid
*/
public function saveUpdateMatvid(AcceptanceTester $I)
{
$I->seeInField(['name' => 'Matvid[matvid_name]'], 'Монитор');
$I->fillField('Matvid[matvid_name]', 'Монитор ЖК');
$I->click('//button[contains(text(), "Обновить")]');
$I->wait(2);
$I->seeElement(['id' => 'matvidgrid_gw']);
$I->see('Монитор ЖК');
$I->seeElement('button', ['title' => 'Удалить']);
}
示例6: editNews
/**
* @depends createNews
*/
public function editNews(AcceptanceTester $I)
{
$I->logInAsAnAdmin();
$I->amOnListNews();
$I->click('Edit');
$I->waitForText('Edit news item');
$I->seeInCurrentUrl('/edit_news');
$title = time() . 'title';
$body = time() . 'body';
$I->fillField('title', $title);
$I->fillField('body', $body);
$I->click('Save changes');
$I->seeInCurrentUrl('/edit_news');
$I->seeInField('title', $title);
$I->seeInField('body', $body);
$I->amOnPage('/home');
$I->see($title);
$I->see($body);
}
示例7: saveCreateGrupa
/**
* @depends openCreateGrupa
*/
public function saveCreateGrupa(AcceptanceTester $I)
{
$I->see('Создать');
$I->click('//button[contains(text(), "Создать")]');
$I->wait(1);
$I->see('Необходимо заполнить «Группа материальной ценности».');
$I->fillField('Grupa[grupa_name]', 'Мебель');
$I->click('//button[contains(text(), "Создать")]');
$I->wait(2);
$I->seeElement(['id' => 'grupavidgrid_gw']);
$I->seeInField('Grupa[grupa_name]', 'МЕБЕЛЬ');
$I->seeElement('//button[contains(text(), "Обновить")]');
}
示例8: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo("change a post slug");
$I->loginAs("test@example.com", "secret");
$I->OpenAnArticle("foo-test");
$I->amGoingTo("change the article slug");
$I->seeInField("#slug_input", "foo-test");
$I->fillField("#slug_input", "bar-test");
$I->click("Save");
$I->expect("the article slug to have changed");
$I->OpenAnArticle("bar-test");
$I->seeInField("#slug_input", "bar-test");
示例9: checkSaveRecordsEventTest
/**
* Check that the PRE_SAVE and POST_SAVE storage event triggered on save.
*
* @param \AcceptanceTester $I
*/
public function checkSaveRecordsEventTest(\AcceptanceTester $I)
{
$I->wantTo("Check the PRE_SAVE & POST_SAVE StorageEvent triggered correctly on save");
// 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->seeInField('#title', 'A Page I Made');
$I->see('Added to teaser during PRE_SAVE on save');
$I->see('Added to body during POST_SAVE on save');
}
示例10: microtime
public function mypage_会員情報編集(\AcceptanceTester $I)
{
$I->wantTo('EF0504-UC01-T01 Mypage 会員情報編集');
$createCustomer = Fixtures::get('createCustomer');
$customer = $createCustomer();
$I->loginAsMember($customer->getEmail(), 'password');
$faker = Fixtures::get('faker');
$new_email = microtime(true) . '.' . $faker->safeEmail;
// TOPページ>マイページ>会員情報編集
$I->amOnPage('/mypage');
$I->click('#main_middle .local_nav ul li:nth-child(3) a');
// 会員情報フォームに既存の登録情報が表示される
$I->seeInField(['id' => 'entry_name_name01'], $customer->getName01());
$form = ['entry[name][name01]' => '姓05', 'entry[name][name02]' => '名05', 'entry[kana][kana01]' => 'セイ', 'entry[kana][kana02]' => 'メイ', 'entry[zip][zip01]' => '530', 'entry[zip][zip02]' => '0001', 'entry[address][pref]' => 27, 'entry[address][addr01]' => '大阪市北区', 'entry[address][addr02]' => '梅田2-4-9 ブリーゼタワー13F', 'entry[tel][tel01]' => '111', 'entry[tel][tel02]' => '111', 'entry[tel][tel03]' => '111', 'entry[email][first]' => $new_email, 'entry[email][second]' => $new_email, 'entry[password][first]' => 'password', 'entry[password][second]' => 'password'];
$findPluginByCode = Fixtures::get('findPluginByCode');
$Plugin = $findPluginByCode('MailMagazine');
if ($Plugin) {
$I->amGoingTo('メルマガプラグインを発見したため、メルマガを購読します');
// 必須入力が効いてない https://github.com/EC-CUBE/mail-magazine-plugin/issues/29
$form['entry[mailmaga_flg]'] = '1';
}
// 会員情報フォームに会員情報を入力する
$I->submitForm("#main_middle form", $form);
// 会員情報編集(完了)画面が表示される
$I->see('会員情報編集(完了)', '#main_middle .page-heading');
// 「トップページへ」ボタンを押下する
$I->click('#main_middle #deliveradd_input .btn_group p a');
// TOPページヘ遷移する
$I->see('新着情報', '#contents_bottom #news_area h2');
}
示例11: AcceptanceTester
<?php
$I = new AcceptanceTester($scenario);
$I->am('administrator');
$I->wantTo('Test CSV import');
$I->activate_tec();
$I->lookForwardTo('Seeing them events, organizers, and venues in the database');
// Upload Organizer
$I->upload_csv('organizers', 'csv-test-organizers.csv');
// Go to the organizers page
$I->amOnPage('/wp-admin/edit.php?post_type=tribe_organizer');
// make sure page loaded successfully
$I->cantSee('Cheatin');
$I->click('George-Michael Bluth');
$I->seeInField('post_title', 'George-Michael Bluth');
$I->seeInField('#OrganizerPhone', '+1-987-555-1238');
$I->seeInField('#OrganizerWebsite', 'http://fakeblock.com');
$I->seeInField('#OrganizerEmail', 'boygeorge@halliburtonteen.com');
// Upload Venues
$I->upload_csv('venues', 'csv-test-venues.csv');
$I->amOnPage('/wp-admin/edit.php?post_type=tribe_venue');
// make sure page loaded successfully
$I->cantSee('Cheatin');
$I->click('Soup Kitchen International');
$I->seeInField('post_title', 'Soup Kitchen International');
$I->seeInField('venue[Address]', '259-A West 55th Street');
$I->seeInField('venue[City]', 'New York');
//$I->seeOptionIsSelected( 'venue[Country]', 'United States' ); //hidden using Chosen - build helper
//$I->seeOptionIsSelected( 'venue[State]', 'New York' ); //hidden using Chosen - build helper
$I->seeInField('venue[Zip]', '10019');
$I->seeInField('venue[Phone]', '+1 (800) 555-8234');
示例12: AcceptanceTester
// @group onlyCrud
use tests\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure that crudOnly works (no access rules)');
$I->amOnPage('/onlyCrud/country');
$I->see('Countries', 'h1');
$I->makeScreenshot('crud-country');
$I->expectTo('see view, edit and delete button');
$I->seeElementInDOM('[data-key="1"] .glyphicon-file');
$I->seeElementInDOM('[data-key="2"] .glyphicon-pencil');
$I->seeElementInDOM('[data-key="3"] .glyphicon-trash');
$I->amGoingTo('create a Country');
$I->click('New');
$I->see('Country', 'h1');
$I->see('Create', '.btn');
$I->fillField('#country-country', 'Xyzland');
$I->makeScreenshot('crud-pre-create-country');
$I->click('Create');
$I->wait(1);
$I->see('Xyzland', 'table');
$I->see('Country', 'table');
$I->makeScreenshot('crud-create-country');
$I->click('Edit');
$I->wait(1);
$I->seeInField('#country-country', 'Xyzland');
$I->see('Country', 'h1');
$I->fillField('#country-country', 'Abcstan');
$I->click('Save');
$I->wait(1);
$I->see('Abcstan', 'table');
$I->makeScreenshot('crud-edit-country');
示例13:
$I->wantTo("make live changes to an existing article");
$I->loginAs("test@example.com", "secret");
// see I'm on the dashboard and click to edit the article
$I->expectTo("see the article I want to edit in the article index");
$I->see("Foo Test", "#foo-test .edit-title");
// see I'm on the editing frame, wait for the iframe content to appear
$I->expectTo("see the article I'm editing appear in the preview frame");
$I->see("Editing Frame");
$I->switchToIFrame("editing_iframe");
$I->waitForElement(".title");
$I->see("Foo Test", ".title");
$I->see("foo article abstract content", ".abstract");
// see that the content in the editing field matches the iframe content
$I->expectTo("see the content in the editing field match the article preview");
$I->switchToIFrame();
$I->seeInField("input#title_input", "Foo Test");
// make a change to a default field (always visible)
$I->amGoingto("change the title");
$I->switchToIframe();
$I->seeInField("#title_input", "Foo Test");
$I->fillField("#title_input", "New Title");
// see change in iframe
$I->expectTo("see the change I made reflected in the preview frame");
$I->switchToIFrame("editing_iframe");
$I->see("New Title", ".title");
// make a change to a dynamic field (stored in Field db)
$I->amGoingTo("change the xxx field");
$I->switchToIframe();
$I->seeInField("#abstract_input", "foo article abstract content");
$I->fillField("#abstract_input", "New abstract");
// see change in iframe