Advertisement
Guest User

Untitled

a guest
Nov 5th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <p class="inactive-action item list-group-item col-xs-4 col-lg-4">Inactive...</p>
  2. <div class="inactive-items hidden">
  3. </div>
  4.  
  5. $('.inactive-action').click(function(){
  6. var $elem = $(this);
  7. $elem.next().slideToggle('fast', function() {
  8. $elem.next().toggleClass('hidden');
  9. if(!$elem.next().hasClass('hidden')){
  10. $elem.html('Less...');
  11. } else{
  12. $elem.html('Inactive...');
  13. }
  14. });
  15. });
  16.  
  17. $I = new AcceptanceTester($scenario);
  18. $I->login('Administrator');
  19. $I->wantTo('Restore a problem');
  20. $I->see('Problems');
  21. $I->statusChangeUI(0,$id,'problem');
  22.  
  23. public function statusChangeUI($type, $id, $name) {
  24. $I->click('p[class^="inactive-action"]');
  25. $I->waitForElementVisible('.inactive-items',5);
  26. }
  27.  
  28. Codeception version: ^2.2.1
  29. PHP Version:>=5.2.4
  30. Operating System:windows
  31. Installation type: Composer
  32.  
  33. class_name: AcceptanceTester
  34. modules:
  35. enabled:
  36. - WebDriver
  37. - HelperAcceptance
  38. - Asserts
  39. - Db
  40. - DbHelper
  41. config:
  42. WebDriver:
  43. url: 'http://localhost:8080/Unified-Core'
  44. browser: 'phantomjs'
  45. window_size: 'maximize'
  46. restart: true
  47. clear_cookies: true
  48. connection_timeout: 60
  49. request_timeout: 60
  50. Db:
  51. dsn: 'mysql:host=localhost;dbname=mydatebase'
  52. user: 'root'
  53. password: 'mypasswoer'
  54. reconnect: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement