3e: Add more assertions
Add more assertions to ensure that the correct page title is returned as well as some text on the page. This fails as the expected test is not returned.
This commit is contained in:
parent
4583075a3e
commit
ef1e960f91
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ class BlogPageTest extends BrowserTestBase {
|
|||
$session = $this->assertSession();
|
||||
|
||||
$session->statusCodeEquals(Response::HTTP_OK);
|
||||
$session->responseContains('<h1>Blog</h1>');
|
||||
$session->pageTextContains('Welcome to my blog!');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue