Improved selectors.
This commit is contained in:
parent
d71d47255b
commit
04a6900bbe
1 changed files with 15 additions and 15 deletions
|
@ -5,8 +5,8 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
def test_agent_ticket_create
|
def test_agent_ticket_create
|
||||||
tests = [
|
tests = [
|
||||||
{
|
{
|
||||||
:name => 'agent ticket create 1',
|
:name => 'agent ticket create 1',
|
||||||
:action => [
|
:action => [
|
||||||
{
|
{
|
||||||
:execute => 'close_all_tasks',
|
:execute => 'close_all_tasks',
|
||||||
},
|
},
|
||||||
|
@ -22,7 +22,7 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
# check ticket
|
# check ticket
|
||||||
{
|
{
|
||||||
:execute => 'match',
|
:execute => 'match',
|
||||||
:css => '.active div.ticket-article',
|
:css => '.content.active .ticket-article',
|
||||||
:value => 'some body 123äöü',
|
:value => 'some body 123äöü',
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
},
|
},
|
||||||
|
@ -30,7 +30,7 @@ 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 .page-header .ticket-number',
|
:css => '.content.active .page-header .ticket-number',
|
||||||
:value => '^(.*)$',
|
:value => '^(.*)$',
|
||||||
:no_quote => true,
|
:no_quote => true,
|
||||||
:match_result => true,
|
:match_result => true,
|
||||||
|
@ -56,7 +56,7 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'watch_for',
|
:execute => 'watch_for',
|
||||||
:area => 'body',
|
:area => '.content.active .ticket-article',
|
||||||
:value => 'some body 1234 äöüß',
|
:value => 'some body 1234 äöüß',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -66,8 +66,8 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
:name => 'agent ticket create 2',
|
:name => 'agent ticket create 2',
|
||||||
:action => [
|
:action => [
|
||||||
|
|
||||||
# create ticket
|
# create ticket
|
||||||
{
|
{
|
||||||
|
@ -79,9 +79,9 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
|
|
||||||
# check ticket
|
# check ticket
|
||||||
{
|
{
|
||||||
:execute => 'watch_for',
|
:execute => 'watch_for',
|
||||||
:area => '.content.active',
|
:area => '.content.active .ticket-article',
|
||||||
:value => 'some body 123äöü 222 - test to merge',
|
:value => 'some body 123äöü 222 - test to merge',
|
||||||
},
|
},
|
||||||
|
|
||||||
# update ticket
|
# update ticket
|
||||||
|
@ -99,9 +99,9 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
:css => '.content.active button.js-submit',
|
:css => '.content.active button.js-submit',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:execute => 'watch_for',
|
:execute => 'watch_for',
|
||||||
:area => '.content.active .ticket-edit',
|
:area => '.content.active .ticket-article',
|
||||||
:value => 'some body 1234 äöüß 333',
|
:value => 'some body 1234 äöüß 333',
|
||||||
},
|
},
|
||||||
|
|
||||||
# check if task is shown
|
# check if task is shown
|
||||||
|
@ -114,8 +114,8 @@ class AgentTicketActionLevel1Test < TestCase
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
:name => 'agent ticket merge',
|
:name => 'agent ticket merge',
|
||||||
:action => [
|
:action => [
|
||||||
{
|
{
|
||||||
:execute => 'click',
|
:execute => 'click',
|
||||||
:css => '.active div[data-tab="ticket"] .js-actions .select-arrow',
|
:css => '.active div[data-tab="ticket"] .js-actions .select-arrow',
|
||||||
|
|
Loading…
Reference in a new issue