>
> Could someone please post a simple Mojo::Test example that
>
>    - enters text "abc" (or adds "123" at the end of the text already in 
>    the text) into an id'ed input text field of some specific form (also 
>    identified by some id)
>    - then presses the submit button (identified by some id) or a link
>    - and checks that the result from this request contains a certain 
>    string
>
> We've been meaning to automate this functionality. Something like a 
Mojo::DOM method to extract default form values (my $form_default_hash = 
$dom->at('#my-form')->val),
and a Test::Mojo method to tie it all together 
($t->get_ok('/form.html')->submit_ok('#my-form' => {some => 'extra_values', 
to => 'be merged'})->status_is(200)).

But so far nobody could come up with the correct semantics, stuff like 
forms with multiple submit buttons makes things complicated.

--
sebastian 

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to