[Rt-commit] rtir branch 5.0/tests-for-incident-and-investigation-creation created. 5.0.3-39-g7ba6cc20
BPS Git Server
git at git.bestpractical.com
Wed Apr 26 13:48:45 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".
The branch, 5.0/tests-for-incident-and-investigation-creation has been created
at 7ba6cc208b0cf57ee04eca0de82992c745ba388a (commit)
- Log -----------------------------------------------------------------
commit 7ba6cc208b0cf57ee04eca0de82992c745ba388a
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date: Wed Apr 26 10:40:56 2023 -0300
Implement incident with simultaneous investigation creation test
diff --git a/t/001-basic-RTIR.t b/t/001-basic-RTIR.t
index ebfd9b3f..3ddcbbd6 100644
--- a/t/001-basic-RTIR.t
+++ b/t/001-basic-RTIR.t
@@ -49,6 +49,23 @@ diag("Incident comment loaded rich text editor");
$agent->content_contains("id=\"UpdateContentType\" value=\"text/html\"", "Update content type is html");
}
+# Create incident with investigation and check if it's created correctly
+diag 'Test the creation of an incident with investigation' if $ENV{TEST_VERBOSE};
+$agent->goto_create_rtir_ticket('Incidents');
+$agent->form_name('TicketCreate');
+$agent->field('Subject', 'Incident with an Investigation');
+$agent->field('Content', 'Content of Incident with an Investigation');
+$agent->field('Requestors', 'root at localhost');
+$agent->field('InvestigationRequestors', 'root at localhost');
+$agent->field('InvestigationSubject', 'Investigation created for test incident');
+$agent->field('InvestigationContent', 'Content of the Investigation');
+$agent->click('CreateWithInvestigation');
+$agent->content_like(qr/Incident #(\d+): Incident with an Investigation/, 'Incident number generated');
+$agent->content_like(qr/Ticket (\d+) created in queue 'Incidents'/, 'Incident created message');
+$agent->content_like(qr/Ticket (\d+) created in queue 'Investigations'/, 'Investigation created message');
+$agent->content_like(qr/Ticket (\d+) member of Ticket (\d+)/, 'Investigation linked to Incident');
+$agent->follow_link_ok({text => 'Investigation created for test incident'}, 'Followed link to investigation');
+$agent->content_contains('Content of the Investigation', 'Investigation content is correct');
undef $agent;
done_testing;
-----------------------------------------------------------------------
hooks/post-receive
--
rtir
More information about the rt-commit
mailing list