Skip to content
Snippets Groups Projects
Commit 01db49ce authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Update test; whitespace is allowable, and does not cause an update

This also steps around a bug in WWW::Mechanize -- namely, while real
browsers ignore a newline that directly follows a <textarea>,
WWW::Mechanize does not.  As such, it views <textarea>\n</textarea> as
containing a newline, whereas browsers view it as empty.

In this case, bulk update ignores it unless it has non-whitespace,
causing the difference to be immaterial.
parent e4a418d5
No related branches found
No related tags found
No related merge requests found
......@@ -79,11 +79,13 @@ $m->content_lacks( 'DeleteLink--', 'no delete link stuff' );
$m->form_name('BulkUpdate');
my @fields = qw/Owner AddRequestor DeleteRequestor AddCc DeleteCc AddAdminCc
DeleteAdminCc Subject Priority Queue Status Starts_Date Told_Date Due_Date
UpdateSubject UpdateContent/;
UpdateSubject/;
for my $field ( @fields ) {
is( $m->value($field), '', "default $field is empty" );
}
like( $m->value('UpdateContent'), qr/^\s*$/, "default UpdateContent is effectively empty" );
# test DependsOn, MemberOf and RefersTo
$m->submit_form(
form_name => 'BulkUpdate',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment