@@ -479,46 +479,46 @@ END_CONTENT
479
479
1,
480
480
' There is only one entry in the SLA selection'
481
481
);
482
- }
483
482
484
- # Close the new note popup.
485
- $Selenium -> find_element( ' .CancelClosePopup' , ' css' )-> click();
483
+ # Close the new note popup.
484
+ $Selenium -> find_element( ' .CancelClosePopup' , ' css' )-> click();
486
485
487
- $Selenium -> WaitFor( WindowCount => 1 );
488
- $Selenium -> switch_to_window( $Handles -> [0] );
486
+ $Selenium -> WaitFor( WindowCount => 1 );
487
+ $Selenium -> switch_to_window( $Handles -> [0] );
489
488
490
- # Please see bug#12871 for more information.
491
- $Success = $DynamicFieldValueObject -> ValueSet(
492
- FieldID => $DynamicFieldID2 ,
493
- ObjectID => $TicketID ,
494
- Value => [
495
- {
496
- ValueText => ' a' ,
497
- },
498
- ],
499
- UserID => 1,
500
- );
489
+ # Please see bug#12871 for more information.
490
+ $Success = $DynamicFieldValueObject -> ValueSet(
491
+ FieldID => $DynamicFieldID2 ,
492
+ ObjectID => $TicketID ,
493
+ Value => [
494
+ {
495
+ ValueText => ' a' ,
496
+ },
497
+ ],
498
+ UserID => 1,
499
+ );
501
500
502
- # Click on 'Note' and switch window.
503
- $Selenium -> find_element(" //a[contains(\@ href, \' Action=AgentTicketNote;TicketID=$TicketID ' )]" )-> click();
501
+ # Click on 'Note' and switch window.
502
+ $Selenium -> find_element(" //a[contains(\@ href, \' Action=AgentTicketNote;TicketID=$TicketID ' )]" )-> click();
504
503
505
- $Selenium -> WaitFor( WindowCount => 2 );
506
- $Handles = $Selenium -> get_window_handles();
507
- $Selenium -> switch_to_window( $Handles -> [1] );
504
+ $Selenium -> WaitFor( WindowCount => 2 );
505
+ $Handles = $Selenium -> get_window_handles();
506
+ $Selenium -> switch_to_window( $Handles -> [1] );
508
507
509
- # Wait until page has loaded.
510
- $Selenium -> WaitFor(
511
- JavaScript =>
512
- ' return typeof(Core) == "object" && typeof(Core.App) == "object" && Core.App.PageLoadComplete;'
513
- );
508
+ # Wait until page has loaded.
509
+ $Selenium -> WaitFor(
510
+ JavaScript =>
511
+ ' return typeof(Core) == "object" && typeof(Core.App) == "object" && Core.App.PageLoadComplete;'
512
+ );
514
513
515
- is(
516
- $Selenium -> execute_script(
517
- " return \$ ('#DynamicField_Field2$RandomID option:not([value=\"\" ])').length;"
518
- ),
519
- 2,
520
- " There are only two entries in the dynamic field 2 selection" ,
521
- );
514
+ is(
515
+ $Selenium -> execute_script(
516
+ " return \$ ('#DynamicField_Field2$RandomID option:not([value=\"\" ])').length;"
517
+ ),
518
+ 2,
519
+ " There are only two entries in the dynamic field 2 selection" ,
520
+ );
521
+ }
522
522
523
523
# De-select the dynamic field value for the first field.
524
524
$Selenium -> InputFieldValueSet(
0 commit comments