[Rt-commit] rt branch, 4.6/select-queue-in-ticket-create, repushed
Aaron Trevena
ast at bestpractical.com
Thu Jan 23 08:28:40 EST 2020
The branch 4.6/select-queue-in-ticket-create was deleted and repushed:
was 1354b5a6ca7abbcc4ec680f0e49415dce3e253d7
now 1df7a27498a22a53d1133cebd9f20945d01f34ab
1: 771c36decf = 1: 771c36decf Select Queue in Ticket Create page
2: 5769015e0f ! 2: 1df7a27498 Select Queue in Ticket Create page Tests and test dependancies
@@ -375,6 +375,8 @@
+my $queue1 = RT::Test->load_or_create_queue( Name => 'General' );
+my $queue2 = RT::Test->load_or_create_queue( Name => 'Specific' );
+my $queue3 = RT::Test->load_or_create_queue( Name => 'Bugs' );
++my $queue4 = RT::Test->load_or_create_queue( Name => 'Another queue' );
++my $queue5 = RT::Test->load_or_create_queue( Name => 'Yet Another queue' );
+my $user = RT::Test->load_or_create_user(
+ Name => 'user',
+ Password => 'password',
@@ -396,6 +398,17 @@
+# load initial ticket create page without specifying queue
+# should have default queue with no custom fields
+note('load create ticket page with defaults');
++$m->get_ok( '/');
++$m->submit_form(
++ form_name => "CreateTicketInQueue",
++);
++no_tag($m,'input',{ name => $cf_form_id }, 'no custom field');
++form_select_field_matches($m, { field_name => 'Queue', selected => $queue3->id,
++ form_name => 'TicketCreate'}, 'Queue selection dropdown populated');
++form_select_field_matches($m, { field_name => 'Status', selected => "new",
++ form_name => 'TicketCreate'}, 'Status selection dropdown populated');
++
++
+$m->get_ok( '/Ticket/Create.html', 'go to ticket create page with no queue id' );
+no_tag($m,'input',{ name => $cf_form_id }, 'no custom field');
+form_select_field_matches($m, { field_name => 'Queue', selected => $queue3->id,
@@ -443,4 +456,3 @@
$m->content_contains($cf_name, 'has cf field' );
$m->submit_form(
-
3: 1354b5a6ca < -: ------- fixup tests
More information about the rt-commit
mailing list