pshitote's avatar

How to use visit() and see() methods during testing

Hi, I am trying to test page navigation by using $this->visit("/") and see("/?page=2") method. I want to ensure the following is correct: On the first page of results, there is a link to page 2 On the second page of results, there is a link to page 1, but that link must not include the parameter page=1 (this test will fail)

on the homePage('/') there is {{ $postcards->links() }} that generates pagination. How can I test this? For example, when I click on 2 on the page navigation I am redirected to localhost/?page=2.

0 likes
0 replies

Please or to participate in this conversation.