Improved tests (check also tab text on name change of shown object).
This commit is contained in:
parent
0d5801528a
commit
b4d34bed5b
2 changed files with 72 additions and 1 deletions
|
@ -19,6 +19,13 @@ class AgentOrganizationProfileTest < TestCase
|
||||||
organization_open_by_search(
|
organization_open_by_search(
|
||||||
value: 'Zammad Foundation',
|
value: 'Zammad Foundation',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
verify_task(
|
||||||
|
data: {
|
||||||
|
title: 'Zammad Foundation',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
watch_for(
|
watch_for(
|
||||||
css: '.active .profile-window',
|
css: '.active .profile-window',
|
||||||
value: 'note',
|
value: 'note',
|
||||||
|
@ -49,6 +56,10 @@ class AgentOrganizationProfileTest < TestCase
|
||||||
value: note,
|
value: note,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(
|
||||||
|
css: '.modal [name="name"]',
|
||||||
|
value: 'Z2',
|
||||||
|
)
|
||||||
set(
|
set(
|
||||||
css: '.active .modal [data-name="note"]',
|
css: '.active .modal [data-name="note"]',
|
||||||
value: 'some note abc',
|
value: 'some note abc',
|
||||||
|
@ -60,6 +71,31 @@ class AgentOrganizationProfileTest < TestCase
|
||||||
value: 'some note abc',
|
value: 'some note abc',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
verify_task(
|
||||||
|
data: {
|
||||||
|
title: 'Z2',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
# change lastname back
|
||||||
|
click(css: '.active .js-action .icon-arrow-down', fast: true)
|
||||||
|
click(css: '.active .js-action [data-type="edit"]')
|
||||||
|
watch_for(
|
||||||
|
css: '.active .modal',
|
||||||
|
value: 'note',
|
||||||
|
)
|
||||||
|
set(
|
||||||
|
css: '.modal [name="name"]',
|
||||||
|
value: 'Zammad Foundation',
|
||||||
|
)
|
||||||
|
click(css: '.active .modal button.js-submit')
|
||||||
|
|
||||||
|
verify_task(
|
||||||
|
data: {
|
||||||
|
title: 'Zammad Foundation',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
# create new ticket
|
# create new ticket
|
||||||
ticket_create(
|
ticket_create(
|
||||||
data: {
|
data: {
|
||||||
|
|
|
@ -16,6 +16,12 @@ class AgentUserProfileTest < TestCase
|
||||||
# search and open user
|
# search and open user
|
||||||
user_open_by_search(value: 'Braun')
|
user_open_by_search(value: 'Braun')
|
||||||
|
|
||||||
|
verify_task(
|
||||||
|
data: {
|
||||||
|
title: 'Nicole Braun',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
watch_for(
|
watch_for(
|
||||||
css: '.active .profile-window',
|
css: '.active .profile-window',
|
||||||
value: 'note',
|
value: 'note',
|
||||||
|
@ -34,7 +40,7 @@ class AgentUserProfileTest < TestCase
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# check and change note again in edit screen
|
# check and change note again in edit screen
|
||||||
click(css: '.active .js-action .icon-arrow-down')
|
click(css: '.active .js-action .icon-arrow-down', fast: true)
|
||||||
click(css: '.active .js-action [data-type="edit"]')
|
click(css: '.active .js-action [data-type="edit"]')
|
||||||
|
|
||||||
watch_for(
|
watch_for(
|
||||||
|
@ -46,6 +52,10 @@ class AgentUserProfileTest < TestCase
|
||||||
value: 'some note 123',
|
value: 'some note 123',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(
|
||||||
|
css: '.modal [name="lastname"]',
|
||||||
|
value: 'B2',
|
||||||
|
)
|
||||||
set(
|
set(
|
||||||
css: '.modal [data-name="note"]',
|
css: '.modal [data-name="note"]',
|
||||||
value: 'some note abc',
|
value: 'some note abc',
|
||||||
|
@ -57,6 +67,31 @@ class AgentUserProfileTest < TestCase
|
||||||
value: 'some note abc',
|
value: 'some note abc',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
verify_task(
|
||||||
|
data: {
|
||||||
|
title: 'Nicole B2',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
# change lastname back
|
||||||
|
click(css: '.active .js-action .icon-arrow-down', fast: true)
|
||||||
|
click(css: '.active .js-action [data-type="edit"]')
|
||||||
|
watch_for(
|
||||||
|
css: '.active .modal',
|
||||||
|
value: 'note',
|
||||||
|
)
|
||||||
|
set(
|
||||||
|
css: '.modal [name="lastname"]',
|
||||||
|
value: 'Braun',
|
||||||
|
)
|
||||||
|
click(css: '.active .modal button.js-submit')
|
||||||
|
|
||||||
|
verify_task(
|
||||||
|
data: {
|
||||||
|
title: 'Nicole Braun',
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
# create new ticket
|
# create new ticket
|
||||||
ticket_create(
|
ticket_create(
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in a new issue