Twitter bootstrap 使用Codeception和PhantomJs测试引导模态

Twitter bootstrap 使用Codeception和PhantomJs测试引导模态,twitter-bootstrap,phantomjs,bootstrap-modal,codeception,Twitter Bootstrap,Phantomjs,Bootstrap Modal,Codeception,我开始使用Codeception和PhantomJS进行验收测试 这是我的acceptance.suite.yml class_name: AcceptanceTester modules: enabled: - WebDriver: url: http://localhost/ browser: firefox window_size: 1280x1024 wait: 2s

我开始使用Codeception和PhantomJS进行验收测试

这是我的
acceptance.suite.yml

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver:
            url: http://localhost/
            browser: firefox
            window_size: 1280x1024
            wait: 2s
        - \Helper\Acceptance
还有我的入学考试

$I = new AcceptanceTester($scenario);
$I->wantTo('Check that something');
$I->amOnPage('/');
$I->click('element that opens a bootstrap modal');
$I->see("Something on the modal");
我用
/PhantomJS--webdriver=4444
启动了一个PhantomJS服务器,并用
php codecept.phar run acceptance
启动了测试

然而,测试失败了

 Step  I see "Something on the modal"
 Fail  Failed asserting that   /
[...]
--> contains "Something on the modal".
\u输出
目录中的屏幕截图显示了模态和
“模态上的某些东西”


我做错什么了吗?

可能是因为接受。yml说浏览器是“firefox”,应该是“phantomjs”