Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p class="inactive-action item list-group-item col-xs-4 col-lg-4">Inactive...</p>
- <div class="inactive-items hidden">
- </div>
- $('.inactive-action').click(function(){
- var $elem = $(this);
- $elem.next().slideToggle('fast', function() {
- $elem.next().toggleClass('hidden');
- if(!$elem.next().hasClass('hidden')){
- $elem.html('Less...');
- } else{
- $elem.html('Inactive...');
- }
- });
- });
- $I = new AcceptanceTester($scenario);
- $I->login('Administrator');
- $I->wantTo('Restore a problem');
- $I->see('Problems');
- $I->statusChangeUI(0,$id,'problem');
- public function statusChangeUI($type, $id, $name) {
- $I->click('p[class^="inactive-action"]');
- $I->waitForElementVisible('.inactive-items',5);
- }
- Codeception version: ^2.2.1
- PHP Version:>=5.2.4
- Operating System:windows
- Installation type: Composer
- class_name: AcceptanceTester
- modules:
- enabled:
- - WebDriver
- - HelperAcceptance
- - Asserts
- - Db
- - DbHelper
- config:
- WebDriver:
- url: 'http://localhost:8080/Unified-Core'
- browser: 'phantomjs'
- window_size: 'maximize'
- restart: true
- clear_cookies: true
- connection_timeout: 60
- request_timeout: 60
- Db:
- dsn: 'mysql:host=localhost;dbname=mydatebase'
- user: 'root'
- password: 'mypasswoer'
- reconnect: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement