[Rt-commit] r14184 - in rtir/branches/2.3-TESTING/t: incident
ruz at bestpractical.com
ruz at bestpractical.com
Wed Jul 16 19:41:17 EDT 2008
Author: ruz
Date: Wed Jul 16 19:41:16 2008
New Revision: 14184
Modified:
rtir/branches/2.3-TESTING/t/002-test-reject.t
rtir/branches/2.3-TESTING/t/010-bulk-reject.t
rtir/branches/2.3-TESTING/t/incident/bulk-abandon.t
rtir/branches/2.3-TESTING/t/rtir-test.pl
Log:
* 'Next Page' -> 'Next'
Modified: rtir/branches/2.3-TESTING/t/002-test-reject.t
==============================================================================
--- rtir/branches/2.3-TESTING/t/002-test-reject.t (original)
+++ rtir/branches/2.3-TESTING/t/002-test-reject.t Wed Jul 16 19:41:16 2008
@@ -144,6 +144,9 @@
display_ticket($agent, $id);
$agent->follow_link_ok({text => "Incident Reports"}, "Followed 'Incident Reports' link");
+ while($agent->content() !~ m{Display.html\?id=$id">$id</a>}) {
+ last unless $agent->follow_link(text => 'Next');
+ }
$agent->has_tag('a', "$id", 'we have link to ticket');
$agent->follow_link_ok({text => "Bulk Reject"}, "Followed 'Bulk Reject' link");
$agent->form_number(3);
Modified: rtir/branches/2.3-TESTING/t/010-bulk-reject.t
==============================================================================
--- rtir/branches/2.3-TESTING/t/010-bulk-reject.t (original)
+++ rtir/branches/2.3-TESTING/t/010-bulk-reject.t Wed Jul 16 19:41:16 2008
@@ -29,7 +29,7 @@
# Note that this method assumes both IRs to be rejected are on the same page, but if they're not, we can't check both in any way.
while($agent->content() !~ qr{<td class="collection-as-table">\s*<b>\s*<a href="/Ticket/Display.html?id=$irs[0]">$irs[0]</a>\s*</b>\s*</td>}) {
- last unless $agent->follow_link(text => 'Next Page');
+ last unless $agent->follow_link(text => 'Next');
}
$agent->form_number(3);
@@ -45,7 +45,7 @@
{
while($agent->content() !~ qr{<td class="collection-as-table">\s*<b>\s*<a href="/Ticket/Display.html?id=$irs[1]">$irs[1]</a>\s*</b>\s*</td>}) {
- last unless $agent->follow_link(text => 'Next Page');
+ last unless $agent->follow_link(text => 'Next');
}
$agent->form_number(3);
Modified: rtir/branches/2.3-TESTING/t/incident/bulk-abandon.t
==============================================================================
--- rtir/branches/2.3-TESTING/t/incident/bulk-abandon.t (original)
+++ rtir/branches/2.3-TESTING/t/incident/bulk-abandon.t Wed Jul 16 19:41:16 2008
@@ -87,7 +87,7 @@
# going to the next page until you find it (or get to the last page and don't find it,
# whichever comes first)
while($agent->content() !~ qr{<a href="/Ticket/Display.html\?id=$to_abandon[0]">$to_abandon[0]</a>}) {
- last unless $agent->follow_link(text => 'Next Page');
+ last unless $agent->follow_link(text => 'Next');
}
$agent->form_number(3);
Modified: rtir/branches/2.3-TESTING/t/rtir-test.pl
==============================================================================
--- rtir/branches/2.3-TESTING/t/rtir-test.pl (original)
+++ rtir/branches/2.3-TESTING/t/rtir-test.pl Wed Jul 16 19:41:16 2008
@@ -268,7 +268,7 @@
# going to the next page until you find it (or get to the last page and don't find it,
# whichever comes first)
while($agent->content() !~ m|<a href="/Ticket/Display.html\?id=$incident">$incident</a>|) {
- last unless $agent->follow_link(text => 'Next Page');
+ last unless $agent->follow_link(text => 'Next');
}
$agent->form_number(3);
More information about the Rt-commit
mailing list