Skip to content

Commit

Permalink
Issue #682: set more test to TODO
Browse files Browse the repository at this point in the history
Because of sporadic failures.
  • Loading branch information
bschmalhofer committed Apr 29, 2021
1 parent d381a76 commit 10f1470
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions scripts/test/Selenium/Agent/AgentTicketProcessSplit.t
Original file line number Diff line number Diff line change
Expand Up @@ -174,37 +174,37 @@ $Selenium->RunTest(

$Selenium->VerifiedRefresh();

# Check if customer user input is on create process screen.
$Selenium->WaitFor( ElementExists => [ '#CustomerAutoComplete', 'css' ] );

my $RandomCustomerUser = 'RandomCustomerUser' . $Helper->GetRandomID();
$Selenium->find_element( "#CustomerAutoComplete", 'css' )->clear();
$Selenium->find_element( "#CustomerID", 'css' )->clear();
$Selenium->find_element( "#CustomerAutoComplete", 'css' )->send_keys($RandomCustomerUser);
$Selenium->find_element( "#CustomerID", 'css' )->send_keys($RandomCustomerUser);

# Check if select button is not disabled.
is(
$Selenium->execute_script("return \$('#SelectionCustomerID').prop('disabled');"),
0,
"Button to select a other CustomerID is not disabled",
);
{
my $ToDo = todo('selection of process is not reliable, see #929');

$Selenium->find_element( "#CustomerAutoComplete", 'css' )->clear();
$Selenium->find_element( "#CustomerID", 'css' )->clear();
try_ok {

$Helper->ConfigSettingChange(
Valid => 1,
Key => 'Ticket::Frontend::AgentTicketProcess::CustomerIDReadOnly',
Value => 1
);
# Check if customer user input is on create process screen.
$Selenium->WaitFor( ElementExists => [ '#CustomerAutoComplete', 'css' ] );

$Selenium->VerifiedRefresh();
my $RandomCustomerUser = 'RandomCustomerUser' . $Helper->GetRandomID();
$Selenium->find_element( "#CustomerAutoComplete", 'css' )->clear();
$Selenium->find_element( "#CustomerID", 'css' )->clear();
$Selenium->find_element( "#CustomerAutoComplete", 'css' )->send_keys($RandomCustomerUser);
$Selenium->find_element( "#CustomerID", 'css' )->send_keys($RandomCustomerUser);

{
my $ToDo = todo('selection of process is not reliable, see #929');
# Check if select button is not disabled.
is(
$Selenium->execute_script("return \$('#SelectionCustomerID').prop('disabled');"),
0,
"Button to select a other CustomerID is not disabled",
);

try_ok {
$Selenium->find_element( "#CustomerAutoComplete", 'css' )->clear();
$Selenium->find_element( "#CustomerID", 'css' )->clear();

$Helper->ConfigSettingChange(
Valid => 1,
Key => 'Ticket::Frontend::AgentTicketProcess::CustomerIDReadOnly',
Value => 1
);

$Selenium->VerifiedRefresh();

# Check if customer user input is on create process screen.
$Selenium->WaitFor( ElementExists => [ '#CustomerAutoComplete', 'css' ] );
Expand Down

0 comments on commit 10f1470

Please sign in to comment.