core.rb 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # encoding: utf-8
  2. require 'browser_test_helper'
  3. class CoreTest < TestCase
  4. def test_core
  5. tests = [
  6. {
  7. :name => 'start',
  8. :instance => browser_instance,
  9. :url => browser_url + '/tests-core',
  10. :action => [
  11. {
  12. :execute => 'wait',
  13. :value => 8,
  14. },
  15. {
  16. :execute => 'match',
  17. :css => '.result .failed',
  18. :value => '0',
  19. :match_result => true,
  20. },
  21. ],
  22. },
  23. ]
  24. browser_single_test(tests)
  25. end
  26. def test_form
  27. tests = [
  28. {
  29. :name => 'start',
  30. :instance => browser_instance,
  31. :url => browser_url + '/tests-form',
  32. :action => [
  33. {
  34. :execute => 'wait',
  35. :value => 8,
  36. },
  37. {
  38. :execute => 'match',
  39. :css => '.result .failed',
  40. :value => '0',
  41. :match_result => true,
  42. },
  43. ],
  44. },
  45. ]
  46. browser_single_test(tests)
  47. end
  48. end