As with the Write Test for Solicitations Search Page issue, we should write tests for the other search pages we intend to scrape in the future. By testing first, we pave the way for using the search form and page structure that the tests describe. In fact, the tests might dictate in a large way how we write this functionality. If there isn't a test for it, we can't do it!
A natural companion to the Solicitations Search page is the Contracts and Awards Search page, where I expect we'd see the businesses whose bids were chosen in the Bid listings on the Solicitations page. As with the other page, write tests for:
ensuring that the search form structure is as we expect
ensuring that invalid form values produce expected errors
ensuring that the search results are structured in a table we know the format of
ensuring that results are produced at all, or that no results are found for garbage input
As with the Write Test for Solicitations Search Page issue, we should write tests for the other search pages we intend to scrape in the future. By testing first, we pave the way for using the search form and page structure that the tests describe. In fact, the tests might dictate in a large way how we write this functionality. If there isn't a test for it, we can't do it!
A natural companion to the Solicitations Search page is the Contracts and Awards Search page, where I expect we'd see the businesses whose bids were chosen in the Bid listings on the Solicitations page. As with the other page, write tests for: