laravelio/laravel.io

Migrate BrowserKit tests to HTTP tests

joedixon opened this issue · 3 comments

While the BrowserKit package is still maintained, it hasn't bee the default in Laravel for some time. It would be cool to port all the browser kit tests to HTTP tests and remove the laravel/browser-kit-testing dependency.

@joedixon Since Laravel HTTP tests do not support tests like this (BrowserKit test).

test('users can manually subscribe to threads', function () {
    Thread::factory()->create(['slug' => $slug = $this->faker->slug()]);

    $this->login();

    $this->visit("/forum/$slug")
        ->press('Subscribe')
        ->seePageIs("/forum/$slug")
        ->see("You're now subscribed to this thread.");
});

I am wondering if you mean to port all BrowserKit to Laravel Dusk ?

Thanks for your interest @digitlimit, but I believe this one is already in the process of being tackled: #984

@joedixon Thanks for letting me know