Version 0.07
[catagits/Test-WWW-Selenium-Catalyst.git] / t / 01-live.t
index 0cb2d87..9e92ad8 100644 (file)
@@ -2,7 +2,7 @@
 # 01-live.t 
 # Copyright (c) 2006 Jonathan Rockway <jrockway@cpan.org>
 
-use Test::More tests => 80;
+use Test::More;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
@@ -10,7 +10,8 @@ use IPC::Cmd qw/can_run/;
 
 my $have_apps = 
   can_run('java') &&
-  ( can_run('firefox') || can_run('firefox-bin') );
+  ( can_run('firefox') || can_run('firefox-bin') ) ||
+  $ENV{WE_HAVE_SELENIUM};
                 
 SKIP: {
   unless ($have_apps) {
@@ -34,7 +35,7 @@ SKIP: {
       } ); 
     };
 
-    skip $@, 80 if $@;
+    skip $@, 79 if $@;
 
     $sel->open_ok('/');
     $sel->text_is("link=Click here", "Click here");
@@ -51,3 +52,5 @@ SKIP: {
     }
   }
 }
+
+done_testing;