1 |
#!/usr/bin/perl |
2 |
use strict; |
3 |
use warnings; |
4 |
|
5 |
use Test::More tests => 10; |
6 |
use lib 'lib'; |
7 |
|
8 |
BEGIN { |
9 |
use_ok('Frey::Test'); |
10 |
use_ok('Test::WWW::Mechanize'); |
11 |
} |
12 |
|
13 |
|
14 |
ok( my $url = Frey::Test->start_server, 'start_server' ); |
15 |
diag $url; |
16 |
|
17 |
my $mech = Test::WWW::Mechanize->new; |
18 |
$mech->get_ok( $url ); |
19 |
|
20 |
$mech->content_contains("Frey"); |
21 |
|
22 |
$mech->get_ok( '/ob/Strix::User' ); |
23 |
$mech->content_contains("results"); |
24 |
|
25 |
$mech->get_ok( '/~/Frey::Introspect' ); |
26 |
$mech->content_contains("introspect.css"); |
27 |
|
28 |
#diag $mech->content; |
29 |
|
30 |
#$mech->field( email => 'test@example.com' ); # FIXME we mungle field names |
31 |
#$mech->submit; |
32 |
|
33 |
#$mech->content_contains('test@example.com'); |
34 |
|
35 |
ok( Frey::Test->stop_server, 'stop_server' ); |
36 |
|