Skip to content

NodeList API #30

Answered by markhuot
ostark asked this question in Q&A
Discussion options

You must be logged in to vote

A few notes that may make this easier to read (or more confusing…)?

it('finds two articles with matching keywords')      // all this could go inside a closure too, I just like the brevity of this
    ->get('/search')                                 // the original get
    ->fill('q', 'Pine Mountain')                     // if this is the only form on the page you can skip the explicit `->form()` call
    ->submit()                                       // submit that form
    ->expect()                                       // start an expectation on the response
    ->statusCode->toBe(200)                          // I added this to make sure the form submission was successful, it could …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by markhuot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants