Skip to content

Commit 41f61dd

Browse files
authored
Merge pull request #983 from RotherOSS/issue-#682-grinding_at_selenium_tests
Issue #682: mark more tests as TODO
2 parents 5a3364b + c190888 commit 41f61dd

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

scripts/test/Selenium/Agent/AgentTicketActionCommonACL.t

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -479,46 +479,46 @@ END_CONTENT
479479
1,
480480
'There is only one entry in the SLA selection'
481481
);
482-
}
483482

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();
486485

487-
$Selenium->WaitFor( WindowCount => 1 );
488-
$Selenium->switch_to_window( $Handles->[0] );
486+
$Selenium->WaitFor( WindowCount => 1 );
487+
$Selenium->switch_to_window( $Handles->[0] );
489488

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+
);
501500

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();
504503

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] );
508507

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+
);
514513

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+
}
522522

523523
# De-select the dynamic field value for the first field.
524524
$Selenium->InputFieldValueSet(

0 commit comments

Comments
 (0)