Skip to content

Commit

Permalink
Merge pull request #863 from RotherOSS/issue-#862-empty_subject
Browse files Browse the repository at this point in the history
Issue #862: mark a test case as TODO
  • Loading branch information
bschmalhofer authored Mar 10, 2021
2 parents f048a8c + c3eb377 commit c9783cd
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions scripts/test/Selenium/Agent/AgentTicketCompose.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ use strict;
use warnings;
use utf8;

use Test2::V0;

# Set up the test driver $Self when we are running as a standalone script.
use Kernel::System::UnitTest::RegisterDriver;

use vars (qw($Self));

use Kernel::Language;

our $Self;

my $Selenium = $Kernel::OM->Get('Kernel::System::UnitTest::Selenium');

$Selenium->RunTest(
Expand Down Expand Up @@ -418,12 +419,16 @@ $Selenium->RunTest(

$Selenium->WaitFor( JavaScript => 'return typeof($) === "function" && $("#ToCustomer").length;' );

my $Message = 'Article subject will be empty if the subject contains only the ticket hook!';
eval {
my $ToDo = todo('warning is not shown, issue #862');

$Self->True(
$Selenium->execute_script("return \$('.MessageBox.Notice:contains(\"$Message\")').length;"),
"Notification about empty subject is found",
);
my $Message = 'Article subject will be empty if the subject contains only the ticket hook!';

$Self->True(
$Selenium->execute_script("return \$('.MessageBox.Notice:contains(\"$Message\")').length;"),
"Notification about empty subject is found",
);
};

# Check duplication of customer user who doesn't exist in the system (see bug#13784).
$Selenium->find_element( "#ToCustomer", 'css' )->send_keys( 'Test', "\N{U+E007}" );
Expand Down Expand Up @@ -821,4 +826,4 @@ $Selenium->RunTest(
}
);

$Self->DoneTesting();
done_testing();

0 comments on commit c9783cd

Please sign in to comment.