我的页面上生成了以下 Flash 消息
flash('Success message')->success();
试图通过断言
->assertSee('Success message');
没有运气
<div class="alert
alert-success
" role="alert">
Success message
</div>
我总会得到
Did not see expected text [Success message] within element [body].
Failed asserting that false is true.
尽管消息在正文中
我究竟做错了什么?
谢谢