0

I attempt write code for test input date on form. My from use input date form 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('บันทึก')
                ;
    });
}

I can't input date on test Laravel Dusk.

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

Have you tried using "keys"?

->keys('#date', '20171018')

Changing #date to your input selector, as is suggested here: https://github.com/laravel/dusk/issues/104

buzkall
  • 927
  • 11
  • 14