fixes for the applied_attribute stuff in moose 2
[catagits/Reaction.git] / t / uncheck_bool_field.t
CommitLineData
c2f0e9e9 1use strict;
2use warnings;
3use Test::More qw(no_plan);
4use Test::WWW::Mechanize::Catalyst 'ComponentUI';
5
6my $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');