Update Form tests to work with CSRF.
This commit is contained in:
parent
19a2a5a31d
commit
2a966c79e9
19 changed files with 63 additions and 63 deletions
|
|
@ -78,11 +78,11 @@ my @forms = HTML::Form->parse($html, 'http://www.webgui.org');
|
|||
is(scalar @forms, 1, '1 form was parsed');
|
||||
|
||||
my @inputs = $forms[0]->inputs;
|
||||
is(scalar @inputs, 1, 'The form has 1 input');
|
||||
is(scalar @inputs, 2, 'The form has 2 inputs');
|
||||
|
||||
#Basic tests
|
||||
|
||||
my $input = $inputs[0];
|
||||
my $input = $inputs[1];
|
||||
is($input->name, 'TestText', 'Checking input name');
|
||||
is($input->type, $formType, 'Checking input type');
|
||||
is($input->value, 'Some text in here', 'Checking default value');
|
||||
|
|
@ -104,7 +104,7 @@ $html = join "\n",
|
|||
|
||||
@forms = HTML::Form->parse($html, 'http://www.webgui.org');
|
||||
@inputs = $forms[0]->inputs;
|
||||
$input = $inputs[0];
|
||||
$input = $inputs[1];
|
||||
is($input->name, 'preTestText', 'Checking input name');
|
||||
is($input->value, 'Some & text in " here', 'Checking default value');
|
||||
is($input->{size}, 25, 'Checking size param, set');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue