Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Selenium stabilization AgentTicketZoom.t.
Browse files Browse the repository at this point in the history
  • Loading branch information
zilibasic committed Oct 3, 2019
1 parent 4c1dab4 commit 093ba43
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/test/Selenium/Agent/AgentTicketZoom.t
Expand Up @@ -87,13 +87,7 @@ $Selenium->RunTest(
Value => 1,
);

my $RandomID = $Helper->GetRandomID();
my $SessionName = "OTRS$RandomID";
$Helper->ConfigSettingChange(
Valid => 1,
Key => 'SessionName',
Value => $SessionName,
);
my $RandomID = $Helper->GetRandomID();

# Create and login test user.
my $Language = 'de';
Expand Down Expand Up @@ -367,6 +361,8 @@ $Selenium->RunTest(

# Check if the IFRAME element DOES NOT contain the session ID parameter.
my $IframeElement = $Selenium->find_element('//iframe[not(contains(@id, "AttachmentWindow"))]');
my $SessionName = $Selenium->execute_script('return Core.Config.Get("SessionName");');

$Self->False(
( $IframeElement->get_attribute('src') =~ m{$SessionName=} ) // 0,
'Session ID not present in the IFRAME source URL'
Expand Down

0 comments on commit 093ba43

Please sign in to comment.