Laravel - Browser Tests - Creating Multiple Browsers

Sometimes you may need multiple browsers in order to properly carry out a test. For example, multiple browsers may be needed to test a chat screen that interacts with websockets. To create multiple browsers, simply add more browser arguments to the signature of the closure given to the browse method:

    $this->browse(function ($first, $second) {
               ->type('message', 'Hey Taylor')
        $first->waitForText('Hey Taylor')
              ->assertSee('Jeffrey Way');