Skip to content

Commit

Permalink
Issue #2992: Revert sidebar width as a workaround for unittest.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Feb 22, 2024
1 parent e36b9b5 commit 2276455
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ $Selenium->RunTest(
my $Handles = $Selenium->get_window_handles();
$Selenium->switch_to_window( $Handles->[1] );

# revert changes of commit 2cf4c40722a91df9ac0090a4048a9c7a9963df89 for AgentTicketPhone masks
# because otherwise the attachment delete button disappears behind the sidebar and is not
# interactive anymore
if ( $Action =~ /^AgentTicketPhone/ ) {
$Selenium->execute_script("\$('div.SidebarColumn').css('width', '270px');");
}

# Wait until page has loaded, if necessary.
$Selenium->WaitFor( JavaScript => "return typeof(\$) === 'function' && \$('.DnDUpload').length;" );

Expand Down

0 comments on commit 2276455

Please sign in to comment.