"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/test/Selenium/Agent/Admin/AdminGenericAgent.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").

AdminGenericAgent.t  (otrs-5.0.39.tar.bz2):AdminGenericAgent.t  (otrs-5.0.40.tar.bz2)
skipping to change at line 191 skipping to change at line 191
# set test dynamic field to date in the past, but do not activate it # set test dynamic field to date in the past, but do not activate it
# validation used to kick in even if checkbox in front wasn't activated # validation used to kick in even if checkbox in front wasn't activated
# see bug#12210 for more information # see bug#12210 for more information
$Selenium->find_element( "#DynamicField_${DynamicFieldName}Year", 'css' )->send_keys('2015'); $Selenium->find_element( "#DynamicField_${DynamicFieldName}Year", 'css' )->send_keys('2015');
$Selenium->find_element( "#DynamicField_${CheckboxDynamicFieldName}Used1 ", 'css' )->VerifiedClick(); $Selenium->find_element( "#DynamicField_${CheckboxDynamicFieldName}Used1 ", 'css' )->VerifiedClick();
# save job # save job
$Selenium->find_element("//button[\@type='submit']")->VerifiedClick(); $Selenium->find_element("//button[\@type='submit']")->VerifiedClick();
$Selenium->WaitFor( ElementExists => "//a[contains(.,\'$GenericAgentJob\ ')]" );
# check if test job show on AdminGenericAgent # check if test job show on AdminGenericAgent
$Self->True( $Self->True(
index( $Selenium->get_page_source(), $GenericAgentJob ) > -1, index( $Selenium->get_page_source(), $GenericAgentJob ) > -1,
"$GenericAgentJob job found on page", "$GenericAgentJob job found on page",
); );
# edit test job to delete test ticket # edit test job to delete test ticket
$Selenium->find_element( $GenericAgentJob, 'link_text' )->VerifiedClick( ); $Selenium->find_element( $GenericAgentJob, 'link_text' )->VerifiedClick( );
# toggle Execute Ticket Commands widget # toggle Execute Ticket Commands widget
$Selenium->execute_script('$(".WidgetSimple.Collapsed .WidgetAction.Togg le a").click();'); $Selenium->execute_script('$(".WidgetSimple.Collapsed .WidgetAction.Togg le a").click();');
$Selenium->execute_script("\$('#NewDelete').val('1').trigger('redraw.Inp utField').trigger('change');"); $Selenium->execute_script("\$('#NewDelete').val('1').trigger('redraw.Inp utField').trigger('change');");
$Selenium->find_element("//button[\@type='submit']")->VerifiedClick(); $Selenium->find_element("//button[\@type='submit']")->VerifiedClick();
$Selenium->WaitFor( ElementExists => "//a[contains(.,\'$GenericAgentJob\ ')]" );
# run test job # run test job
$Selenium->find_element("//a[contains(\@href, \'Subaction=Run;Profile=$G enericAgentJob' )]")->VerifiedClick(); $Selenium->find_element("//a[contains(\@href, \'Subaction=Run;Profile=$G enericAgentJob' )]")->VerifiedClick();
# verify there are no tickets found with enabled ExtendedSearchCondition # verify there are no tickets found with enabled ExtendedSearchCondition
$Self->True( $Self->True(
index( $Selenium->get_page_source(), '0 Tickets affected! What do yo u want to do?' ) > -1, index( $Selenium->get_page_source(), '0 Tickets affected! What do yo u want to do?' ) > -1,
"No tickets found on page with ExtendedSearchCondition enabled", "No tickets found on page with ExtendedSearchCondition enabled",
); );
skipping to change at line 278 skipping to change at line 280
$Selenium->execute_script("\$('#Valid').val('0').trigger('redraw.InputFi eld').trigger('change');"); $Selenium->execute_script("\$('#Valid').val('0').trigger('redraw.InputFi eld').trigger('change');");
# check if the checkbox from dynamicfield is selected # check if the checkbox from dynamicfield is selected
$Self->Is( $Self->Is(
$Selenium->find_element( "#DynamicField_${CheckboxDynamicFieldName}U sed1", 'css' )->is_selected(), $Selenium->find_element( "#DynamicField_${CheckboxDynamicFieldName}U sed1", 'css' )->is_selected(),
1, 1,
"$CheckboxDynamicFieldName Used1 is selected", "$CheckboxDynamicFieldName Used1 is selected",
); );
$Selenium->find_element("//button[\@type='submit']")->VerifiedClick(); $Selenium->find_element("//button[\@type='submit']")->VerifiedClick();
$Selenium->WaitFor( ElementExists => "//a[contains(.,\'$GenericAgentJob\ ')]" );
# check class of invalid generic job in the overview table # check class of invalid generic job in the overview table
$Self->True( $Self->True(
$Selenium->execute_script( $Selenium->execute_script(
"return \$('tr.Invalid td:contains($GenericAgentJob)').length" "return \$('tr.Invalid td:contains($GenericAgentJob)').length"
), ),
"There is a class 'Invalid' for test generic job", "There is a class 'Invalid' for test generic job",
); );
# delete test job # delete test job
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

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