Small adjustments.

This commit is contained in:
Martin Edenhofer 2014-12-04 20:40:57 +01:00
parent 0852e62786
commit 7460980545
2 changed files with 28 additions and 58 deletions

View file

@ -187,7 +187,7 @@ class AgentTicketActionsLevel2Test < TestCase
}, },
{ {
:execute => 'wait', :execute => 'wait',
:value => 3, :value => 4,
}, },
# reload instances, verify again # reload instances, verify again

View file

@ -126,9 +126,12 @@ class AgentTicketActionLevel5Test < TestCase
:value => '', :value => '',
}, },
{ {
:execute => 'set', :execute => 'wait',
:css => '.active [data-name="body"]', :value => 1,
:value => 'test ::' + random, },
{
:execute => 'set_ticket_attributes',
:body => 'test ::' + random,
}, },
{ {
:execute => 'watch_for', :execute => 'watch_for',
@ -285,31 +288,21 @@ class AgentTicketActionLevel5Test < TestCase
}, },
{ {
:where => :instance2, :where => :instance2,
:execute => 'set', :execute => 'set_ticket_attributes',
:css => '.active [data-name="body"]', :body => '::' + random,
:value => '::' + random,
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 2, :value => 2,
}, },
{
:where => :instance2,
:execute => 'match',
:css => 'body',
:value => random,
:match_result => true,
},
{ {
:where => :instance2, :where => :instance2,
:execute => 'sendkey', :execute => 'sendkey',
:value => [:arrow_down] :value => [:arrow_down]
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 3, :value => 1,
}, },
{ {
:where => :instance2, :where => :instance2,
@ -317,7 +310,6 @@ class AgentTicketActionLevel5Test < TestCase
:css => '.active .shortcut > ul> li > a', :css => '.active .shortcut > ul> li > a',
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -348,7 +340,6 @@ class AgentTicketActionLevel5Test < TestCase
:value => [:arrow_down] :value => [:arrow_down]
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -358,18 +349,15 @@ class AgentTicketActionLevel5Test < TestCase
:css => '.active .newTicket .recipientList-entry.js-user.is-active', :css => '.active .newTicket .recipientList-entry.js-user.is-active',
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
{ {
:where => :instance2, :where => :instance2,
:execute => 'set', :execute => 'set_ticket_attributes',
:css => '.active [data-name="body"]', :body => '::' + random,
:value => '::' + random,
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -379,7 +367,6 @@ class AgentTicketActionLevel5Test < TestCase
:value => [:arrow_down] :value => [:arrow_down]
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -389,7 +376,6 @@ class AgentTicketActionLevel5Test < TestCase
:css => '.active .shortcut > ul> li > a', :css => '.active .shortcut > ul> li > a',
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -437,9 +423,8 @@ class AgentTicketActionLevel5Test < TestCase
}, },
{ {
:where => :instance2, :where => :instance2,
:execute => 'set', :execute => 'set_ticket_attributes',
:css => '.active [data-name="body"]', :body => 'test',
:value => 'test',
}, },
{ {
:execute => 'wait', :execute => 'wait',
@ -447,20 +432,12 @@ class AgentTicketActionLevel5Test < TestCase
}, },
{ {
:where => :instance2, :where => :instance2,
:execute => 'set', :execute => 'set_ticket_attributes',
:css => '.active [data-name="body"]', :body => '::' + random,
:value => '::' + random,
}, },
{ {
:execute => 'wait', :execute => 'wait',
:value => 2, :value => 1,
},
{
:where => :instance2,
:execute => 'match',
:css => '.active .ticket-edit',
:value => random,
:match_result => true,
}, },
{ {
:where => :instance2, :where => :instance2,
@ -468,7 +445,6 @@ class AgentTicketActionLevel5Test < TestCase
:value => [:arrow_down] :value => [:arrow_down]
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -529,7 +505,6 @@ class AgentTicketActionLevel5Test < TestCase
:value => [:arrow_down] :value => [:arrow_down]
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -539,7 +514,6 @@ class AgentTicketActionLevel5Test < TestCase
:css => '.modal .recipientList-entry.js-user.is-active', :css => '.modal .recipientList-entry.js-user.is-active',
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },
@ -549,33 +523,29 @@ class AgentTicketActionLevel5Test < TestCase
:css => '.modal-content .js-submit', :css => '.modal-content .js-submit',
}, },
{ {
:where => :instance2,
:execute => 'watch_for_disappear', :execute => 'watch_for_disappear',
:area => '.modal', :area => '.modal',
}, },
{
:execute => 'wait',
:value => 1,
},
{ {
:where => :instance2, :where => :instance2,
:execute => 'set', :execute => 'set_ticket_attributes',
:css => '.active [data-name="body"]', :body => '::' + random,
:value => '::' + random,
}, },
{ {
:execute => 'wait', :execute => 'wait',
:value => 2, :value => 1,
}, },
# {
# :where => :instance2,
# :execute => 'match',
# :css => 'body',
# :value => random,
# :match_result => true,
# },
{ {
:where => :instance2, :where => :instance2,
:execute => 'sendkey', :execute => 'sendkey',
:value => [:arrow_down] :value => [:arrow_down]
}, },
{ {
:where => :instance2,
:execute => 'wait', :execute => 'wait',
:value => 1, :value => 1,
}, },