This `within` block is not needed, since it asserts the same thing that the expectation does (if the comment message was not there, the test would fail at the `within`, and never get to the `expect`). These three lines could be replaced with `expect(page).to have_css 'tr', text: comment.message`