aab_unit_test.rb 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # encoding: utf-8
  2. require 'browser_test_helper'
  3. class AAbUnitTest < TestCase
  4. def test_core
  5. @browser = browser_instance
  6. location(url: browser_url + '/tests_core')
  7. sleep 10
  8. match(
  9. css: '.result .failed',
  10. value: '0',
  11. )
  12. end
  13. def test_ui
  14. @browser = browser_instance
  15. location(url: browser_url + '/tests_ui')
  16. sleep 8
  17. match(
  18. css: '.result .failed',
  19. value: '0',
  20. )
  21. location(url: browser_url + '/tests_model')
  22. sleep 8
  23. match(
  24. css: '.result .failed',
  25. value: '0',
  26. )
  27. location(url: browser_url + '/tests_model_ui')
  28. sleep 8
  29. match(
  30. css: '.result .failed',
  31. value: '0',
  32. )
  33. location(url: browser_url + '/tests_ticket_selector')
  34. sleep 8
  35. match(
  36. css: '.result .failed',
  37. value: '0',
  38. )
  39. end
  40. def test_form
  41. @browser = browser_instance
  42. location(url: browser_url + '/tests_form')
  43. sleep 4
  44. match(
  45. css: '.result .failed',
  46. value: '0',
  47. )
  48. location(url: browser_url + '/tests_form_trim')
  49. sleep 4
  50. match(
  51. css: '.result .failed',
  52. value: '0',
  53. )
  54. location(url: browser_url + '/tests_form_find')
  55. sleep 4
  56. match(
  57. css: '.result .failed',
  58. value: '0',
  59. )
  60. location(url: browser_url + '/tests_form_timer')
  61. sleep 4
  62. match(
  63. css: '.result .failed',
  64. value: '0',
  65. )
  66. location(url: browser_url + '/tests_form_extended')
  67. sleep 4
  68. match(
  69. css: '.result .failed',
  70. value: '0',
  71. )
  72. location(url: browser_url + '/tests_form_searchable_select')
  73. sleep 2
  74. match(
  75. css: '.result .failed',
  76. value: '0',
  77. )
  78. location(url: browser_url + '/tests_form_tree_select')
  79. sleep 2
  80. match(
  81. css: '.result .failed',
  82. value: '0',
  83. )
  84. location(url: browser_url + '/tests_form_column_select')
  85. sleep 2
  86. match(
  87. css: '.result .failed',
  88. value: '0',
  89. )
  90. location(url: browser_url + '/tests_form_validation')
  91. sleep 4
  92. match(
  93. css: '.result .failed',
  94. value: '0',
  95. )
  96. end
  97. def test_table
  98. @browser = browser_instance
  99. location(url: browser_url + '/tests_table')
  100. sleep 4
  101. match(
  102. css: '.result .failed',
  103. value: '0',
  104. )
  105. location(url: browser_url + '/tests_table_extended')
  106. sleep 4
  107. match(
  108. css: '.result .failed',
  109. value: '0',
  110. )
  111. location(url: browser_url + '/tests_html_utils')
  112. sleep 4
  113. match(
  114. css: '.result .failed',
  115. value: '0',
  116. )
  117. location(url: browser_url + '/tests_taskbar')
  118. sleep 4
  119. match(
  120. css: '.result .failed',
  121. value: '0',
  122. )
  123. end
  124. end