blob: d98baaac0c6c6ec518ed2659cbebde27f160f814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/usr/bin/perl
use strict;
use RT::Test tests => 8;
RT::Test->started_ok;
my $ticket = RT::Ticket->new($RT::SystemUser);
for ( 1 .. 75 ) {
$ticket->Create(
Subject => 'Ticket ' . $_,
Queue => 'General',
Owner => 'root',
Requestor => 'unlimitedsearch@localhost',
);
}
my $agent = RT::Test::Web->new;
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', '0');
$agent->submit('AddClause');
$agent->form_name('BuildQuery');
$agent->field('RowsPerPage', '0');
$agent->submit('DoSearch');
$agent->follow_link_ok({text=>'Show Results'});
$agent->content_like(qr/Ticket 75/);
$agent->follow_link_ok({text=>'New Search'});
$agent->form_name('BuildQuery');
$agent->field('idOp', '>');
$agent->field('ValueOfid', '0');
$agent->submit('AddClause');
$agent->form_name('BuildQuery');
$agent->field('RowsPerPage', '50');
$agent->submit('DoSearch');
$agent->follow_link_ok({text=>'Bulk Update'});
$agent->content_unlike(qr/Ticket 51/);
|