Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

vinayakkulkarni commented Dec 27, 2016

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