【发布时间】:2018-10-19 02:42:38
【问题描述】:
我正在尝试测试 Laravel 5.3 应用程序。为了使用测试配置引导应用程序,我添加了 index-testing.php 入口点。
我的代码接收验收测试配置如下:
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: 'http://nginx/index-testing.php'
host: 'selenium'
browser: 'chrome'
- \Helper\Acceptance_selenium
这是测试场景的一段输出:
Scenario --
I am on page "/"
[GET] http://nginx/index-testing.php/
I click ".apply-button"
所以实际上不是http://nginx/index-testing.php,而是http://nginx/index-testing.php/,这当然会导致404
如何删除这个斜杠?
【问题讨论】:
标签: webdriver laravel-5.3 integration-testing codeception acceptance-testing