123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- # encoding: utf-8
- require 'browser_test_helper'
- class AAbUnitTest < TestCase
- def test_core
- tests = [
- {
- :name => 'start',
- :instance => browser_instance,
- :url => browser_url + '/tests-core',
- :action => [
- {
- :execute => 'wait',
- :value => 8,
- },
- {
- :execute => 'match',
- :css => '.result .failed',
- :value => '0',
- :match_result => true,
- },
- ],
- },
- ]
- browser_single_test(tests)
- end
- def test_ui
- tests = [
- {
- :name => 'start',
- :instance => browser_instance,
- :url => browser_url + '/tests-ui',
- :action => [
- {
- :execute => 'wait',
- :value => 8,
- },
- {
- :execute => 'match',
- :css => '.result .failed',
- :value => '0',
- :match_result => true,
- },
- ],
- },
- ]
- browser_single_test(tests)
- end
- def test_model
- tests = [
- {
- :name => 'start',
- :instance => browser_instance,
- :url => browser_url + '/tests-model',
- :action => [
- {
- :execute => 'wait',
- :value => 8,
- },
- {
- :execute => 'match',
- :css => '.result .failed',
- :value => '0',
- :match_result => true,
- },
- ],
- },
- ]
- browser_single_test(tests)
- end
- def test_form
- tests = [
- {
- :name => 'start',
- :instance => browser_instance,
- :url => browser_url + '/tests-form',
- :action => [
- {
- :execute => 'wait',
- :value => 8,
- },
- {
- :execute => 'match',
- :css => '.result .failed',
- :value => '0',
- :match_result => true,
- },
- ],
- },
- ]
- browser_single_test(tests)
- end
- def test_table
- tests = [
- {
- :name => 'start',
- :instance => browser_instance,
- :url => browser_url + '/tests-table',
- :action => [
- {
- :execute => 'wait',
- :value => 8,
- },
- {
- :execute => 'match',
- :css => '.result .failed',
- :value => '0',
- :match_result => true,
- },
- ],
- },
- ]
- browser_single_test(tests)
- end
- end
|