[Rt-commit] rt branch, 4.0/search-now-tabs, created. rt-4.0.0-171-g54cdceb
Shawn Moore
sartak at bestpractical.com
Fri Apr 29 10:06:01 EDT 2011
The branch, 4.0/search-now-tabs has been created
at 54cdceb5f5bea2b8bc1384c7800812e4317b1db3 (commit)
- Log -----------------------------------------------------------------
commit 1dff3a91868be5719b24ec30b6dbad06ad632d57
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Apr 28 17:09:23 2011 -0400
use warnings in search_tabs.t
diff --git a/t/web/search_tabs.t b/t/web/search_tabs.t
index 3cd8f8b..0528c80 100644
--- a/t/web/search_tabs.t
+++ b/t/web/search_tabs.t
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-
+use warnings;
use strict;
use RT::Test tests => 7;
commit 54cdceb5f5bea2b8bc1384c7800812e4317b1db3
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Apr 29 10:05:17 2011 -0400
Test for "add and search", #17237
diff --git a/t/web/search_tabs.t b/t/web/search_tabs.t
index 0528c80..53d8bcb 100644
--- a/t/web/search_tabs.t
+++ b/t/web/search_tabs.t
@@ -2,7 +2,7 @@
use warnings;
use strict;
-use RT::Test tests => 7;
+use RT::Test tests => 12;
my ($baseurl, $agent) = RT::Test->started_ok;
my $ticket = RT::Ticket->new(RT->SystemUser);
@@ -17,6 +17,7 @@ for ( 1 .. 2 ) {
ok $agent->login('root', 'password'), 'logged in as root';
+# [issues.bestpractical.com #16841] {
$agent->get_ok('/Search/Build.html');
$agent->form_name('BuildQuery');
@@ -32,4 +33,26 @@ $agent->submit('AddClause');
$agent->follow_link_ok({id => 'page-results'});
$agent->title_is('Found 2 tickets');
+# }
+
+# [issues.bestpractical.com #17237] {
+$agent->follow_link_ok({text => 'New Search'});
+$agent->title_is('Query Builder');
+
+$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->click_button(name => 'DoSearch');
+
+$agent->title_is('Found 2 tickets');
+
+$agent->follow_link_ok({id => 'page-results'});
+$agent->title_is('Found 2 tickets');
+# }
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list