Skip to content

Commit

Permalink
Issue #3100: Chacke state ajax loader instead of df ajax loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter authored and svenoe committed Mar 6, 2024
1 parent a1a678f commit 121249b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/test/Selenium/Agent/AgentTicketEmailOutbound.t
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ $Selenium->RunTest(
State => 'open',
);

# check update form with JS for dynamic field
# check update form with JS for state id
$Self->Is(
$Selenium->execute_script("return \$('#AJAXLoaderDynamicField_$DFName').length"),
$Selenium->execute_script("return \$('#AJAXLoaderComposeStateID').length"),
0,
"AJAX Loader for '$DFName' does not exist",
"AJAX Loader for 'ComposeStateID' does not exist",
);
$Selenium->InputFieldValueSet(
Element => '#ComposeStateID',
Expand All @@ -200,12 +200,12 @@ $Selenium->RunTest(

# wait for appearance of ajax update field
$Selenium->WaitFor(
JavaScript => "return typeof(\$) === 'function' && \$('#AJAXLoaderDynamicField_$DFName').length"
JavaScript => "return typeof(\$) === 'function' && \$('#AJAXLoaderComposeStateID').length"
);
$Self->Is(
$Selenium->execute_script("return \$('#AJAXLoaderDynamicField_$DFName').length"),
$Selenium->execute_script("return \$('#AJAXLoaderComposeStateID').length"),
1,
"AJAX Loader for '$DFName' exists - JS function was run",
"AJAX Loader for 'ComposeStateID' exists - JS function was run",
);

# fill in customer
Expand Down

0 comments on commit 121249b

Please sign in to comment.