我尝试在表单上为测试输入日期编写代码。我的使用输入日期表单 w3s。
public function testAddCustomer()
{
$this->browse(function (browser $browser) {
$browser->clickLink('เพิ่มลูกค้า')
->pause(500)
->assertPathIs('/customer/create')
->assertSee('ลงทะเบียนลูกค้า')
.
.
.
->select('product_id', '1500ml')
->type('product_date', '17082017')
->pause(500)
//->press('บันทึก')
;
});
}
我无法在测试 Laravel Dusk 中输入日期。