debug for button events - missed on last commit
[catagits/Reaction.git] / t / uncheck_bool_field.t
1 use strict;
2 use warnings;
3 use Test::More qw(no_plan);
4 use Test::WWW::Mechanize::Catalyst 'ComponentUI';
5
6 my $mech = Test::WWW::Mechanize::Catalyst->new;
7 $mech->get_ok('http://localhost/testmodel/baz/id/1/update');
8 # print $mech->content, "\n";
9 $mech->tick('r-vp-1-field-bool_field:value_string', 1);
10 $mech->submit_form(button => 'r-vp-1:apply');
11 $mech->content_like(qr{checked="checked"}, 'checked');
12 $mech->untick('r-vp-1-field-bool_field:value_string', 1);
13 $mech->submit_form(button => 'r-vp-1:apply');
14 $mech->content_unlike(qr{checked="checked"}, 'should not be checked');