"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/test/Selenium/Agent/Admin/AdminSysConfig.t" between
otrs-5.0.39.tar.bz2 and otrs-5.0.40.tar.bz2

About: OTRS (formerly "Open Ticket Request System" now "Open Technology – Real Service") is a web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. 5.x release ("Community Edition").

AdminSysConfig.t  (otrs-5.0.39.tar.bz2):AdminSysConfig.t  (otrs-5.0.40.tar.bz2)
skipping to change at line 161 skipping to change at line 161
$Selenium->find_element("//input[\@name='Ticket::CustomQueue']")->send_k eys("My Queuesedit"); $Selenium->find_element("//input[\@name='Ticket::CustomQueue']")->send_k eys("My Queuesedit");
$Selenium->find_element("//input[\@name='Ticket::CustomService']")->clea r(); $Selenium->find_element("//input[\@name='Ticket::CustomService']")->clea r();
$Selenium->find_element("//input[\@name='Ticket::CustomService']")->send _keys("My Servicesedit"); $Selenium->find_element("//input[\@name='Ticket::CustomService']")->send _keys("My Servicesedit");
$Selenium->execute_script( $Selenium->execute_script(
"\$('select[name=\"Ticket\\:\\:NewArticleIgnoreSystemSender\"]').val ('1').trigger('redraw.InputField').trigger('change');" "\$('select[name=\"Ticket\\:\\:NewArticleIgnoreSystemSender\"]').val ('1').trigger('redraw.InputField').trigger('change');"
); );
$Selenium->execute_script( $Selenium->execute_script(
"\$('button[value=Update]')[0].scrollIntoView(true);", "\$('button[value=Update]')[0].scrollIntoView(true);",
); );
$Self->True(
$Selenium->execute_script(
"return \$('button[value=Update]').length;"
),
"Update button is found",
);
$Selenium->find_element("//button[\@value='Update']")->VerifiedClick(); $Selenium->find_element("//button[\@value='Update']")->VerifiedClick();
$Selenium->WaitFor( $Selenium->WaitFor(
JavaScript => JavaScript =>
"return typeof(\$) === 'function' && \$('input[name=\"Ticket::Cu stomQueue\"]').length;" "return typeof(\$) === 'function' && \$('input[name=\"Ticket\\:\ \:CustomQueue\"]').val() == 'My Queuesedit' && \$('input[name=\"Ticket\\:\\:Cust omService\"]').val() == 'My Servicesedit';"
); );
# Check for edited values. # Check for edited values.
$Self->Is( $Self->Is(
$Selenium->find_element("//input[\@name='Ticket::CustomQueue']")->ge t_value(), $Selenium->find_element("//input[\@name='Ticket::CustomQueue']")->ge t_value(),
"My Queuesedit", "My Queuesedit",
"CustomQueue updated value", "CustomQueue updated value",
); );
$Self->Is( $Self->Is(
$Selenium->find_element("//input[\@name='Ticket::CustomService']")-> get_value(), $Selenium->find_element("//input[\@name='Ticket::CustomService']")-> get_value(),
skipping to change at line 187 skipping to change at line 193
"CustomerService updated value", "CustomerService updated value",
); );
$Self->Is( $Self->Is(
$Selenium->find_element("//select[\@name='Ticket::NewArticleIgnoreSy stemSender']")->get_value(), $Selenium->find_element("//select[\@name='Ticket::NewArticleIgnoreSy stemSender']")->get_value(),
1, 1,
"NewArticleIgnoreSystemSender updated value is Yes", "NewArticleIgnoreSystemSender updated value is Yes",
); );
# Restore edited values back to default. # Restore edited values back to default.
for my $ResetDefault (qw(CustomQueue CustomService NewArticleIgnoreSyste mSender)) { for my $ResetDefault (qw(CustomQueue CustomService NewArticleIgnoreSyste mSender)) {
$Selenium->execute_script("\$('button[name=$ResetDefault]').click();
"); $Selenium->WaitFor(
sleep 1; JavaScript =>
"return typeof(\$) === 'function' && \$('button[name=\"Reset
Ticket\\:\\:$ResetDefault\"]').length;"
);
$Selenium->execute_script(
"\$('button[name=\"ResetTicket\\:\\:$ResetDefault\"]')[0].scroll
IntoView(true);",
);
$Self->True(
$Selenium->execute_script(
"return \$('button[name=\"ResetTicket\\:\\:$ResetDefault\"]'
).length;"
),
"'$ResetDefault' restore button is found",
);
$Selenium->find_element("//button[\@name='ResetTicket::$ResetDefault
']")->VerifiedClick();
$Selenium->WaitFor(
JavaScript =>
"return typeof(\$) === 'function' && !\$('button[name=\"Rese
tTicket\\:\\:$ResetDefault\"]').length;"
);
$Self->True(
$Selenium->execute_script(
"return !\$('button[name=\"ResetTicket\\:\\:$ResetDefault\"]
').length;"
),
"'$ResetDefault' restore button is not found",
);
} }
} }
); );
1; 1;
 End of changes. 3 change blocks. 
4 lines changed or deleted 41 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)