[Rt-commit] [rtir] 11/22: use those new css classes

Jesse Vincent jesse at bestpractical.com
Sun Mar 29 02:51:00 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit b07329e2ca4944aa5f5121d3ceca0c8cb697e413
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sat Mar 28 20:16:36 2015 -0700

    use those new css classes
---
 lib/RT/IR/Test/Web.pm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/lib/RT/IR/Test/Web.pm b/lib/RT/IR/Test/Web.pm
index 80af1fc..cea0c2e 100644
--- a/lib/RT/IR/Test/Web.pm
+++ b/lib/RT/IR/Test/Web.pm
@@ -128,8 +128,8 @@ sub create_rtir_ticket
         'Incidents'        => 'CreateIncident'
     );
     # Create it!
-    $self->click( $create{ $queue } );
-    
+    my @submits = $self->find_all_inputs(id => 'create-ticket');
+    $self->click_button(input=>$submits[0]); 
     Test::More::is ($self->status, 200, "Attempted to create the ticket");
 
     return $self->get_ticket_id;
@@ -144,7 +144,7 @@ sub create_incident_for_ir {
     $self->display_ticket( $ir_id );
 
     # Select the "New" link from the Display page
-    $self->follow_link_ok({text => "New"}, "Followed 'New (Incident)' link")
+    $self->follow_link_ok({id => 'create-incident'}, "Followed 'New (Incident)' link")
         or Test::More::diag $self->content;
 
     $self->form_number(3);
@@ -157,7 +157,9 @@ sub create_incident_for_ir {
         $self->set_custom_field( 'Incidents', $f, $v);
     }
 
-    $self->click("CreateIncident");
+    #warn $self->content;
+    my @submits = $self->find_all_inputs(id => 'create-ticket');
+    $self->click_button(input=>$submits[0]); 
     
     Test::More::is ($self->status, 200, "Attempting to create new incident linked to child $ir_id");
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list