Moved to new markup.
This commit is contained in:
parent
511aa44b7d
commit
b739b891c8
8 changed files with 109 additions and 102 deletions
|
@ -30,31 +30,31 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
# remember old ticket where we want to merge to
|
# remember old ticket where we want to merge to
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-number',
|
:css => '.active .page-header .ticket-number',
|
||||||
:value => '^(.*)$',
|
:value => '^(.*)$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
|
||||||
# update ticket
|
# update ticket
|
||||||
{
|
#{
|
||||||
:execute => 'select',
|
# :execute => 'select',
|
||||||
:css => '.active select[name="type_id"]',
|
# :css => '.active select[name="type_id"]',
|
||||||
:value => 'note',
|
# :value => 'note',
|
||||||
},
|
#},
|
||||||
{
|
{
|
||||||
:execute => 'check',
|
:execute => 'check',
|
||||||
:css => '.active textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:result => true,
|
:result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some body 1234 äöüß',
|
:value => 'some body 1234 äöüß',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.active button.submit',
|
:css => '.active input.submit',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'wait',
|
:execute => 'wait',
|
||||||
|
@ -66,8 +66,7 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
:value => 'some body 1234 äöüß',
|
:value => 'some body 1234 äöüß',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'close_all_tasks',
|
||||||
:css => '#task [data-type="close"]',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -81,40 +80,40 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
:execute => 'create_ticket',
|
:execute => 'create_ticket',
|
||||||
:group => 'Users',
|
:group => 'Users',
|
||||||
:subject => 'test to merge',
|
:subject => 'test to merge',
|
||||||
:body => 'some body 123äöü 222',
|
:body => 'some body 123äöü 222 - test to merge',
|
||||||
},
|
},
|
||||||
|
|
||||||
# check ticket
|
# check ticket
|
||||||
{
|
{
|
||||||
:execute => 'watch_for',
|
:execute => 'watch_for',
|
||||||
:area => '.content_permanent.active',
|
:area => '.content.active',
|
||||||
:value => 'some body 123äöü 222',
|
:value => 'some body 123äöü 222 - test to merge',
|
||||||
},
|
},
|
||||||
|
|
||||||
# update ticket
|
# update ticket
|
||||||
{
|
#{
|
||||||
:execute => 'select',
|
# :execute => 'select',
|
||||||
:css => '.content_permanent.active select[name="type_id"]',
|
# :css => '.content_permanent.active select[name="type_id"]',
|
||||||
:value => 'note',
|
# :value => 'note',
|
||||||
},
|
#},
|
||||||
{
|
{
|
||||||
:execute => 'check',
|
:execute => 'check',
|
||||||
:css => '.content_permanent.active textarea[name="body"]',
|
:css => '.content.active [data-name="body"]',
|
||||||
:result => true,
|
:result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.content_permanent.active textarea[name="body"]',
|
:css => '.content.active [data-name="body"]',
|
||||||
:value => 'some body 1234 äöüß 222',
|
:value => 'some body 1234 äöüß 333',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.content_permanent.active button.submit',
|
:css => '.content.active input.submit',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'watch_for',
|
:execute => 'watch_for',
|
||||||
:area => '.content_permanent.active .ticket-answer',
|
:area => '.content.active .ticket-edit',
|
||||||
:value => 'some body 1234 äöüß 222',
|
:value => 'some body 1234 äöüß 333',
|
||||||
},
|
},
|
||||||
|
|
||||||
# check if task is shown
|
# check if task is shown
|
||||||
|
@ -131,7 +130,7 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
:action => [
|
:action => [
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.active .actions',
|
:css => '.active .actions button',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
|
@ -158,7 +157,7 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
# check if megred to ticket is shown now
|
# check if megred to ticket is shown now
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-number',
|
:css => '.active .page-header .ticket-number',
|
||||||
:value => '###stack###',
|
:value => '###stack###',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -173,8 +172,7 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
|
|
||||||
# close task/cleanup
|
# close task/cleanup
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'close_all_tasks',
|
||||||
:css => '#task [data-type="close"]',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -46,7 +46,7 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-number',
|
:css => '.active .page-header .ticket-number',
|
||||||
:value => '^(.*)$',
|
:value => '^(.*)$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -123,13 +123,13 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some level 2 <b>body</b> in instance 2',
|
:value => 'some level 2 <b>body</b> in instance 2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some level 2 <b>body</b> in instance 1',
|
:value => 'some level 2 <b>body</b> in instance 1',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.taskbar .active .task',
|
:css => '.tasks .active',
|
||||||
:value => 'TTTsome level 2 <b>subject</b> 123äöü',
|
:value => 'TTTsome level 2 <b>subject</b> 123äöü',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -162,7 +162,7 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.taskbar .active .task',
|
:css => '.tasks .active',
|
||||||
:value => 'TTTsome level 2 <b>subject</b> 123äöü',
|
:value => 'TTTsome level 2 <b>subject</b> 123äöü',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -181,35 +181,35 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some level 2 <b>body</b> in instance 1',
|
:value => 'some level 2 <b>body</b> in instance 1',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some level 2 <b>body</b> in instance 2',
|
:value => 'some level 2 <b>body</b> in instance 2',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
|
||||||
# add new article
|
# add new article
|
||||||
{
|
#{
|
||||||
:where => :instance1,
|
# :where => :instance1,
|
||||||
:execute => 'select',
|
# :execute => 'select',
|
||||||
:css => '.active .ticket-answer select[name="type_id"]',
|
# :css => '.active .ticket-edit select[name="type_id"]',
|
||||||
:value => 'note',
|
# :value => 'note',
|
||||||
},
|
#},
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some update 4711',
|
:value => 'some update 4711',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.active button.submit',
|
:css => '.active input.submit',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
|
@ -222,14 +222,14 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '',
|
:value => '',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some level 2 <b>body</b> in instance 2',
|
:value => 'some level 2 <b>body</b> in instance 2',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -260,7 +260,7 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.taskbar .active .task',
|
:css => '.tasks .active',
|
||||||
:value => 'TTTsome level 2 <b>subject</b> 123äöü',
|
:value => 'TTTsome level 2 <b>subject</b> 123äöü',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -295,14 +295,14 @@ class AgentTicketActionsLevel2Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '',
|
:value => '',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some level 2 <b>body</b> in instance 2',
|
:value => 'some level 2 <b>body</b> in instance 2',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -46,7 +46,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-number',
|
:css => '.active .page-header .ticket-number',
|
||||||
:value => '^#(.*)$',
|
:value => '^#(.*)$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -89,7 +89,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => 'some level 3 <b>body</b> in instance 1',
|
:value => 'some level 3 <b>body</b> in instance 1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -101,7 +101,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => 'some level 3 <b>body</b> in instance 2',
|
:value => 'some level 3 <b>body</b> in instance 2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => 'some level 3 <b>body</b> in instance 1',
|
:value => 'some level 3 <b>body</b> in instance 1',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -162,7 +162,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '^$',
|
:value => '^$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -199,7 +199,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '^$',
|
:value => '^$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -215,7 +215,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '^$',
|
:value => '^$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -243,7 +243,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance1,
|
:where => :instance1,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '^$',
|
:value => '^$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -259,7 +259,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '^$',
|
:value => '^$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -277,7 +277,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '22 some level 3 <b>body</b> in instance 2',
|
:value => '22 some level 3 <b>body</b> in instance 2',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -299,7 +299,7 @@ class AgentTicketActionsLevel3Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active .ticket-answer textarea[name="body"]',
|
:css => '.active .ticket-edit textarea[name="body"]',
|
||||||
:value => '22 some level 3 <b>body</b> in instance 2',
|
:value => '22 some level 3 <b>body</b> in instance 2',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,7 +26,7 @@ class AgentTicketActionLevel4Test < TestCase
|
||||||
|
|
||||||
# reload instances, verify autosave
|
# reload instances, verify autosave
|
||||||
{
|
{
|
||||||
:execute => 'reload',
|
:execute => 'reload',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'wait',
|
:execute => 'wait',
|
||||||
|
@ -57,8 +57,7 @@ class AgentTicketActionLevel4Test < TestCase
|
||||||
|
|
||||||
# close task/cleanup
|
# close task/cleanup
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'close_all_tasks',
|
||||||
:css => '#task [data-type="close"]',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -120,7 +120,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '::' + random,
|
:value => '::' + random,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -143,7 +143,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some content' + random,
|
:value => 'some content' + random,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -291,7 +291,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '::' + random,
|
:value => '::' + random,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -319,7 +319,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some content ' + random,
|
:value => 'some content ' + random,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -330,7 +330,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-create input[name="customer_id_autocompletion"]',
|
:css => '.active .ticket-create input[name="customer_id_completion"]',
|
||||||
:value => 'nicole',
|
:value => 'nicole',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -340,13 +340,13 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'sendkey',
|
:execute => 'sendkey',
|
||||||
:css => '.active .ticket-create input[name="customer_id_autocompletion"]',
|
:css => '.active .ticket-create input[name="customer_id_completion"]',
|
||||||
:value => :arrow_down,
|
:value => :arrow_down,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'sendkey',
|
:execute => 'sendkey',
|
||||||
:css => '.active .ticket-create input[name="customer_id_autocompletion"]',
|
:css => '.active .ticket-create input[name="customer_id_completion"]',
|
||||||
:value => :tab,
|
:value => :tab,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -357,7 +357,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '::' + random,
|
:value => '::' + random,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -378,7 +378,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some content Braun' + random,
|
:value => 'some content Braun' + random,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -420,7 +420,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'test',
|
:value => 'test',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -430,7 +430,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '::' + random,
|
:value => '::' + random,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -456,7 +456,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some content Braun' + random,
|
:value => 'some content Braun' + random,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -494,7 +494,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '#form-customer input[name="customer_id_autocompletion"]',
|
:css => '#form-customer input[name="customer_id_completion"]',
|
||||||
:value => firstname,
|
:value => firstname,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -504,13 +504,13 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'sendkey',
|
:execute => 'sendkey',
|
||||||
:css => '#form-customer input[name="customer_id_autocompletion"]',
|
:css => '#form-customer input[name="customer_id_completion"]',
|
||||||
:value => :arrow_down,
|
:value => :arrow_down,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'sendkey',
|
:execute => 'sendkey',
|
||||||
:css => '#form-customer input[name="customer_id_autocompletion"]',
|
:css => '#form-customer input[name="customer_id_completion"]',
|
||||||
:value => :tab,
|
:value => :tab,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -531,7 +531,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => '::' + random,
|
:value => '::' + random,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -557,7 +557,7 @@ class AgentTicketActionLevel5Test < TestCase
|
||||||
{
|
{
|
||||||
:where => :instance2,
|
:where => :instance2,
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active textarea[name=body]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some content ' + lastname,
|
:value => 'some content ' + lastname,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,7 +28,17 @@ class AgentUserManageTest < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.active .customer_new',
|
:css => '.active [name="customer_id_completion"]',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
:execute => 'sendkey',
|
||||||
|
:css => '.active [name="customer_id_completion"]',
|
||||||
|
:value => :arrow_down,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
:execute => 'sendkey',
|
||||||
|
:css => '.active [name="customer_id_completion"]',
|
||||||
|
:value => :enter,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'wait',
|
:execute => 'wait',
|
||||||
|
@ -62,34 +72,34 @@ class AgentUserManageTest < TestCase
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id"]',
|
:css => '.active input[name="customer_id"]',
|
||||||
:value => '^[0-9].?$',
|
:value => '^\d+$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => firstname,
|
:value => firstname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => lastname,
|
:value => lastname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => customer_user_email,
|
:value => customer_user_email,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => fullname,
|
:value => fullname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -128,20 +138,20 @@ class AgentUserManageTest < TestCase
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id"]',
|
:css => '.active input[name="customer_id"]',
|
||||||
:value => '^[0-9].?$',
|
:value => '^\d+$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => false,
|
:match_result => false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => firstname,
|
:value => firstname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => false,
|
:match_result => false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-create input[name="customer_id_autocompletion"]',
|
:css => '.active .ticket-create input[name="customer_id_completion"]',
|
||||||
:value => customer_user_email,
|
:value => customer_user_email,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -150,13 +160,13 @@ class AgentUserManageTest < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'sendkey',
|
:execute => 'sendkey',
|
||||||
:css => '.active .ticket-create input[name="customer_id_autocompletion"]',
|
:css => '.active .ticket-create input[name="customer_id_completion"]',
|
||||||
:value => :arrow_down,
|
:value => :arrow_down,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'sendkey',
|
:execute => 'sendkey',
|
||||||
:css => '.active .ticket-create input[name="customer_id_autocompletion"]',
|
:css => '.active .ticket-create input[name="customer_id_completion"]',
|
||||||
:value => :tab,
|
:value => :enter,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'wait',
|
:execute => 'wait',
|
||||||
|
@ -165,27 +175,27 @@ class AgentUserManageTest < TestCase
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id"]',
|
:css => '.active input[name="customer_id"]',
|
||||||
:value => '^[0-9].?$',
|
:value => '^\d+$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => firstname,
|
:value => firstname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => lastname,
|
:value => lastname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active input[name="customer_id_autocompletion"]',
|
:css => '.active input[name="customer_id_completion"]',
|
||||||
:value => fullname,
|
:value => fullname,
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
|
|
@ -36,7 +36,7 @@ class CustomerTicketCreateTest < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.ticket-create textarea[name="body"]',
|
:css => '.ticket-create [data-name="body"]',
|
||||||
:value => 'some body 123äöü',
|
:value => 'some body 123äöü',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -64,17 +64,17 @@ class CustomerTicketCreateTest < TestCase
|
||||||
# update ticket
|
# update ticket
|
||||||
{
|
{
|
||||||
:execute => 'check',
|
:execute => 'check',
|
||||||
:css => '.active textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:result => true,
|
:result => true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active textarea[name="body"]',
|
:css => '.active [data-name="body"]',
|
||||||
:value => 'some body 1234 äöüß',
|
:value => 'some body 1234 äöüß',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.active button',
|
:css => '.active input[type="submit"]',
|
||||||
:type => 'submit',
|
:type => 'submit',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -121,7 +121,7 @@ class TaskbarTaskTest < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-create textarea[name="body"]',
|
:css => '.active .ticket-create [data-name="body"]',
|
||||||
:value => 'INBOUND BODY TEST#1',
|
:value => 'INBOUND BODY TEST#1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -147,7 +147,7 @@ class TaskbarTaskTest < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'set',
|
:execute => 'set',
|
||||||
:css => '.active .ticket-create textarea[name="body"]',
|
:css => '.active .ticket-create [data-name="body"]',
|
||||||
:value => 'OUTBOUND BODY TEST#1',
|
:value => 'OUTBOUND BODY TEST#1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue