[Rt-commit] rtir branch 5.0-trunk updated. 5.0.4-3-g275b4108
BPS Git Server
git at git.bestpractical.com
Mon Jul 3 18:39:33 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-trunk has been updated
via 275b410817a64ede3f0eac6145a81041d68b77ff (commit)
via 15e0380dbb8d9f1fa7f106972c60e3bd3b8dcc8d (commit)
from 01eca686d3b706109fe6ab443be80800573bcc21 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 275b410817a64ede3f0eac6145a81041d68b77ff
Merge: 01eca686 15e0380d
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Jul 4 02:33:01 2023 +0800
Merge branch '5.0/tests-for-incident-and-investigation-creation' into 5.0-trunk
commit 15e0380dbb8d9f1fa7f106972c60e3bd3b8dcc8d
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..f2334410 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';
+$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;
-----------------------------------------------------------------------
Summary of changes:
t/001-basic-RTIR.t | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
hooks/post-receive
--
rtir
More information about the rt-commit
mailing list