Improved set of contenteditable fields.

This commit is contained in:
Martin Edenhofer 2015-12-05 20:44:43 +01:00
parent 7831f1c1f8
commit b62b67293e
5 changed files with 14 additions and 13 deletions

View file

@ -32,7 +32,6 @@ class AgentOrganizationProfileTest < TestCase
set(
css: '.active .profile [data-name="note"]',
value: note,
contenteditable: true,
)
click( css: '.empty-search' )
sleep 2
@ -112,7 +111,6 @@ class AgentOrganizationProfileTest < TestCase
browser: browser1,
css: '.active .profile [data-name="note"]',
value: message,
contenteditable: true,
)
click(
browser: browser1,

View file

@ -190,11 +190,13 @@ class AgentTicketActionLevel0Test < TestCase
browser: browser2,
css: '.active div[data-name=body]',
value: 'test',
no_click: true,
)
set(
browser: browser2,
css: '.active div[data-name=body]',
value: '::' + random,
no_click: true,
)
sendkey(
browser: browser2,
@ -247,6 +249,7 @@ class AgentTicketActionLevel0Test < TestCase
browser: browser2,
css: '.active div[data-name=body]',
value: '::' + random,
no_click: true,
)
sendkey(

View file

@ -29,8 +29,6 @@ class AgentUserProfileTest < TestCase
set(
css: '.active [data-name="note"]',
value: 'some note 123',
contenteditable: true,
)
click( css: '.empty-search' )
sleep 2
@ -108,7 +106,6 @@ class AgentUserProfileTest < TestCase
browser: browser1,
css: '.active [data-name="note"]',
value: message,
contenteditable: true,
)
click(
browser: browser1,

View file

@ -44,6 +44,7 @@ class CustomerTicketCreateTest < TestCase
set(
css: '.active [data-name="body"]',
value: 'some body 1234 äöüß',
no_click: true,
)
task_type(

View file

@ -384,13 +384,13 @@ class TestCase < Test::Unit::TestCase
=begin
set(
browser: browser1,
css: '.some_class',
value: true,
slow: false,
blur: true,
clear: true, # todo | default: true
contenteditable: true
browser: browser1,
css: '.some_class',
value: true,
slow: false,
blur: true,
clear: true, # todo | default: true
no_click: true,
)
=end
@ -402,7 +402,9 @@ class TestCase < Test::Unit::TestCase
instance = params[:browser] || @browser
element = instance.find_elements( { css: params[:css] } )[0]
element.click
if !params[:no_click]
element.click
end
element.clear
if !params[:slow]