3 ms·
> Verify some basics of the page contents Implies that you're looking for the contents that are supposed to be returned. When there's an error, the contents y
by gwbas1c 6y ago
> Verify some basics of the page contents
Implies that you're looking for the contents that are supposed to be returned.
When there's an error, the contents you're looking for won't be there, therefore the test will fail.
Furthermore, HTTP testing libraries typically require you to specify required HTTP status codes.
- RandoHolmes 6y ago- "you can, for example, examine HTML in your tests" - "that sounds super fragile, there's only a few circumstances in which I would that" - "Here's the circumstances in which I'm doing that" - "Here are the problems with what you're doing, and here are alternatives that don't involve examining the HTML" - "I'm not examining the HTML!?!? Whatever gave you that impression!" --- Not worth my time.