aab_unit_test.rb 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. end
  34. def test_form
  35. @browser = browser_instance
  36. location(url: browser_url + '/tests_form')
  37. sleep 4
  38. match(
  39. css: '.result .failed',
  40. value: '0',
  41. )
  42. location(url: browser_url + '/tests_form_trim')
  43. sleep 4
  44. match(
  45. css: '.result .failed',
  46. value: '0',
  47. )
  48. location(url: browser_url + '/tests_form_find')
  49. sleep 4
  50. match(
  51. css: '.result .failed',
  52. value: '0',
  53. )
  54. location(url: browser_url + '/tests_form_timer')
  55. sleep 4
  56. match(
  57. css: '.result .failed',
  58. value: '0',
  59. )
  60. location(url: browser_url + '/tests_form_extended')
  61. sleep 4
  62. match(
  63. css: '.result .failed',
  64. value: '0',
  65. )
  66. location(url: browser_url + '/tests_form_searchable_select')
  67. sleep 2
  68. match(
  69. css: '.result .failed',
  70. value: '0',
  71. )
  72. location(url: browser_url + '/tests_form_column_select')
  73. sleep 2
  74. match(
  75. css: '.result .failed',
  76. value: '0',
  77. )
  78. location(url: browser_url + '/tests_form_validation')
  79. sleep 4
  80. match(
  81. css: '.result .failed',
  82. value: '0',
  83. )
  84. end
  85. def test_table
  86. @browser = browser_instance
  87. location(url: browser_url + '/tests_table')
  88. sleep 4
  89. match(
  90. css: '.result .failed',
  91. value: '0',
  92. )
  93. location(url: browser_url + '/tests_html_utils')
  94. sleep 4
  95. match(
  96. css: '.result .failed',
  97. value: '0',
  98. )
  99. location(url: browser_url + '/tests_taskbar')
  100. sleep 4
  101. match(
  102. css: '.result .failed',
  103. value: '0',
  104. )
  105. end
  106. end