Improved tests.

This commit is contained in:
Martin Edenhofer 2014-04-07 08:50:47 +02:00
parent f840a15bd9
commit 983dc703e4
2 changed files with 4 additions and 56 deletions

View file

@ -69,34 +69,6 @@ class AgentTicketActionsLevel2Test < TestCase
:link => '###stack###', :link => '###stack###',
# :css => 'a:contains(\'###stack###\')', # :css => 'a:contains(\'###stack###\')',
}, },
{
:execute => 'wait',
:value => 1,
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").val("")',
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").focus()',
},
{
:execute => 'wait',
:value => 1,
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").blur()',
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").parent().parent().removeClass("open")',
},
{ {
:execute => 'wait', :execute => 'wait',
:value => 3, :value => 3,

View file

@ -53,6 +53,10 @@ class AgentTicketActionsLevel3Test < TestCase
}, },
# open ticket in second browser # open ticket in second browser
{
:execute => 'wait',
:value => 1,
},
{ {
:where => :instance2, :where => :instance2,
:execute => 'set', :execute => 'set',
@ -69,34 +73,6 @@ class AgentTicketActionsLevel3Test < TestCase
:link => '###stack###', :link => '###stack###',
# :css => 'a:contains(\'###stack###\')', # :css => 'a:contains(\'###stack###\')',
}, },
{
:execute => 'wait',
:value => 1,
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").val("")',
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").focus()',
},
{
:execute => 'wait',
:value => 1,
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").blur()',
},
{
:where => :instance2,
:execute => 'js',
:value => '$("#global-search").parent().parent().removeClass("open")',
},
{ {
:execute => 'wait', :execute => 'wait',
:value => 3, :value => 3,