Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test label for optional field too
  • Loading branch information
kraih committed Sep 30, 2013
1 parent b4a1235 commit 0f3ec82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/mojolicious/validation_lite_app.t
Expand Up @@ -176,7 +176,7 @@ $t->get_ok('/' => form => {foo => 'no'})->status_is(200)
->text_is('label.custom.field-with-error[for="foo"]' => '<Foo>')
->element_exists('input.custom.field-with-error[type="text"][value="no"]')
->element_exists_not('textarea.field-with-error')
->text_is('label[for="baz"]' => 'Baz')
->element_exists_not('label.custom.field-with-error[for="baz"]')
->element_exists_not('select.field-with-error')
->element_exists_not('input.field-with-error[type="password"]');

Expand Down

0 comments on commit 0f3ec82

Please sign in to comment.