检查您是否可以在功能测试中看到带有 class 的文本/Laravel

Check that you can see a text with a class in functional testing / Laravel

我需要使用 PHPUnit 检查我的文本是否存在于我的页面中/Laravel。

  <del class="text-muted">Configure</del>

目前,我只知道如何使用

检查 Configure 是否存在
 $this->visit('/')
        ->see('configure')

是否可以检查 Laravel 5.2 内置测试中是否存在带有文本静音 class 的配置文本???

解决方法是:

 $this->visit('/')
      ->seeInElement("del.text-muted", 'Configure'));

但是我在官方文档中没有找到:(