Skip to content

Instantly share code, notes, and snippets.

@vinayakkulkarni
Created December 27, 2016 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinayakkulkarni/bae4f724411847ad1897653f052ab60a to your computer and use it in GitHub Desktop.
Save vinayakkulkarni/bae4f724411847ad1897653f052ab60a to your computer and use it in GitHub Desktop.
Using within() to limit DOM search for link click()
$this->visitRoute('history.index')
->within('th a', function() { $this->click('Register'); })
->seeRouteIs('history.index', ['sort' => '5', 'sorttype' => 'asc']);
@vinayakkulkarni
Copy link
Author

Test for Example: http://localhost/history?sort=5&sorttype=asc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment