[Rt-commit] rt branch, 4.0/search-tabs, created. rt-4.0.0rc6-30-gd1d0334
Shawn Moore
sartak at bestpractical.com
Fri Mar 11 14:23:43 EST 2011
The branch, 4.0/search-tabs has been created
at d1d03343e95a872434e60004b0d1e74157e8f128 (commit)
- Log -----------------------------------------------------------------
commit d1d03343e95a872434e60004b0d1e74157e8f128
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Mar 11 14:22:57 2011 -0500
Add a failing test for #16841
diff --git a/t/web/search_tabs.t b/t/web/search_tabs.t
new file mode 100644
index 0000000..3cd8f8b
--- /dev/null
+++ b/t/web/search_tabs.t
@@ -0,0 +1,35 @@
+#!/usr/bin/perl
+
+use strict;
+
+use RT::Test tests => 7;
+my ($baseurl, $agent) = RT::Test->started_ok;
+
+my $ticket = RT::Ticket->new(RT->SystemUser);
+for ( 1 .. 2 ) {
+ $ticket->Create(
+ Subject => 'Ticket ' . $_,
+ Queue => 'General',
+ Owner => 'root',
+ Requestor => 'clownman at localhost',
+ );
+}
+
+ok $agent->login('root', 'password'), 'logged in as root';
+
+$agent->get_ok('/Search/Build.html');
+
+$agent->form_name('BuildQuery');
+$agent->field('idOp', '=');
+$agent->field('ValueOfid', '1');
+$agent->submit('AddClause');
+
+$agent->form_name('BuildQuery');
+$agent->field('idOp', '=');
+$agent->field('ValueOfid', '2');
+$agent->field('AndOr', 'OR');
+$agent->submit('AddClause');
+
+$agent->follow_link_ok({id => 'page-results'});
+$agent->title_is('Found 2 tickets');
+
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list