Migrate BrowserKit tests to HTTP tests
joedixon opened this issue · 3 comments
joedixon commented
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.
digitlimit commented
@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 ?
joedixon commented
Thanks for your interest @digitlimit, but I believe this one is already in the process of being tackled: #984
digitlimit commented
@joedixon Thanks for letting me know