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'); }
$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
<?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');
<?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', '*****@*****.**'); $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', '*****@*****.**'); $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');
$I->lookForwardTo('see the welcome message in the Panel'); $I->amOnPage('/oc-panel/auth/login'); $I->fillField('email', '*****@*****.**'); $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', '*****@*****.**'); $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');