Improved unit tests.
This commit is contained in:
parent
5a30476bc0
commit
11e1cd471e
2 changed files with 13 additions and 3 deletions
|
@ -263,7 +263,7 @@ class TextModuleTest < TestCase
|
|||
:action => [
|
||||
{
|
||||
:execute => 'wait',
|
||||
:value => 3,
|
||||
:value => 4,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
|
@ -388,6 +388,16 @@ class TextModuleTest < TestCase
|
|||
:execute => 'wait',
|
||||
:value => 4,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'set',
|
||||
:css => '.active textarea[name=body]',
|
||||
:value => 'test',
|
||||
},
|
||||
{
|
||||
:execute => 'wait',
|
||||
:value => 4,
|
||||
},
|
||||
{
|
||||
:where => :instance2,
|
||||
:execute => 'set',
|
||||
|
@ -418,7 +428,7 @@ class TextModuleTest < TestCase
|
|||
:where => :instance2,
|
||||
:execute => 'match',
|
||||
:css => '.active textarea[name=body]',
|
||||
:value => 'some content' + random,
|
||||
:value => 'some content Braun' + random,
|
||||
:match_result => true,
|
||||
},
|
||||
],
|
||||
|
|
|
@ -247,7 +247,7 @@ puts "NOTICE #{Time.now.to_s}: " + action.inspect
|
|||
sleep 4
|
||||
element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } )
|
||||
element.clear
|
||||
element.send_keys( 'ma' )
|
||||
element.send_keys( 'nico' )
|
||||
sleep 4
|
||||
element = instance.find_element( { :css => '.active .ticket_create input[name="customer_id_autocompletion"]' } )
|
||||
element.send_keys( :arrow_down )
|
||||
|
|
Loading…
Reference in a new issue