Laravel Dusk: painless browser automation

  Рет қаралды 20,186

Aaron Francis

Aaron Francis

Күн бұрын

Пікірлер: 68
@logsnroll
@logsnroll 2 ай бұрын
Laravel's ecosystem is so damn good!
@aarondfrancis
@aarondfrancis 2 ай бұрын
I'll say!
@CookingCoding
@CookingCoding 2 ай бұрын
Dusk is so powerful, and it is not just for testing. I remember using it back in the days during uni to automatically sign up for classes 😅
@aarondfrancis
@aarondfrancis 2 ай бұрын
haha incredible
@wevertonlotosport
@wevertonlotosport 2 ай бұрын
Omg! Aaron keep up reviewing all laravel packages, I will try dusk right now
@vijaysmarthome
@vijaysmarthome 2 ай бұрын
what a timing on the video!! I am planning on integrating the Dusk into one of my open source projects today.
@mohamedabdulkadirosman3594
@mohamedabdulkadirosman3594 2 ай бұрын
I was searching the best way to test filamentphp and I saw this!!, right on time. Thank you
@milenkostadinov8702
@milenkostadinov8702 Ай бұрын
Hello Aaron. I would agree with you and others that Laravel ecosystem is super cool and powerful. Thanks for the informative video. One thing to notice though, the dusk is not built for someone actually stating at the screen while validating stuff etc, but rather take a big hit on the automation part while using the GUI and markup to identify required components of the page to be or not presented at a certain point. Having that said, you would like to have the fastest testing possible so the typeSlowly to me is just for the coders to view the process of their tests being executed at the time of development, but we should not forget to remove any slowdown parts to make sure the tests runs as quickly and lightly as possible. Btw, great video and thanks for the Laravel Ecosystems serie touching the entire "family". I myself will have to watch or revisit some of the members as we code and develop based on the project needs so sometimes staying away for a while requires you to get back on track by RTFM :)
@khaledwaleed7009
@khaledwaleed7009 2 ай бұрын
You’re making everything look so damn easy I really love your videos. Also a real life example of everything that amazing ❤
@skygnd
@skygnd 2 ай бұрын
18:38 this multiple browser thing would be good solution for testing real time messaging like things... I really loved it!
@aarondfrancis
@aarondfrancis 2 ай бұрын
Yes totally!
@Strammeiche
@Strammeiche 2 ай бұрын
Quite good integration. Laravel really is a great framework with a ton of useful things.
@FarazSamapoor
@FarazSamapoor 2 ай бұрын
Very cool example at the end. Thank you for going the extra mile to keep everyone engaged and pumped! 🚀
@easyfullstack
@easyfullstack 2 ай бұрын
I have been using an sharing info on Laravel dusk for many years now. Nothing better than Dusk to test a Laravel monolith.
@jeremymattausch2218
@jeremymattausch2218 15 күн бұрын
Now Dusk seems extra powerful for webscraping, like you said. I'll have to give Dusk a go. I'm falling in love more and more with the Laravel Ecosystem by the day
@ronodmg
@ronodmg 2 ай бұрын
This channel lately has made me want to play around with Laravel.... even though I haven't done web dev in like 5 years..
@aarondfrancis
@aarondfrancis 2 ай бұрын
It's working...
@ivanjelenic5627
@ivanjelenic5627 2 ай бұрын
Thanks, love this. I knew and wanted to play with Dusk, but never got to it. Thanks for exploring and showing various Laravel stuff to/for us.
@SuperHighFiveGuy
@SuperHighFiveGuy 2 ай бұрын
"when some product guy comes along... ...because that's how real users work" That's savage and I'm here for it.
2 ай бұрын
You are the new Jeffrey way! That guy made a programmer and changed my life. I love this. Always wanted to learn this. Can you teach us golang now? 😂
@aarondfrancis
@aarondfrancis 2 ай бұрын
Haha I don't know golang! So... probably not!
2 ай бұрын
@@aarondfrancis perfect! we can learn with you, you didnt know laravel dusk before
@PHP-Dinos
@PHP-Dinos Ай бұрын
Thanks 🙏 for such a useful tutorial 😊
@knightofrohan
@knightofrohan 2 ай бұрын
Hey Aaron, this is really cool. Newbie question: at the end when you test the Reverb website, does that mean that I could, for example, build some kind of test application to test WordPress sites, for example, that are completely separate from the Laravel application that houses the Dusk test suite I'm running?
@aarondfrancis
@aarondfrancis 2 ай бұрын
You absolutely could! Cool huh
@rand0mtv660
@rand0mtv660 2 ай бұрын
11:30 since I'm coming from the JS ecosystem, I only wish that getting elements on the page had more "accessible" selectors. I personally like how react-testing-library and Playwright promote using more accessible selectors such as labels or placeholder text. That's how real users see fields and I think it's a really good approach to also test that your UI is accessible as well as asserting whatever you want. Of course there are times when you have to reach for data-* attribute selectors (or something else), but most of the time if you see that you have to use a weird selector to target an element, it's actively discouraged and can tell you that your UI isn't accessible and you can act on it and address it. Other than that I guess Dusk's strength is its super tight integration with Laravel. No other tool can match that.
@TobiasRohde
@TobiasRohde 2 ай бұрын
When I joined my last project, there were no tests. By chance, I came across Laravel Dusk at some point and we experimented with it a little and were thrilled. But then we ran into major problems that cost us a lot of time. The Chrome browser on our Windows development computers was automatically updated. As a result, we received an error message when running the tests that the version of the ChromeDriver did not match the version of the locally installed Chrome browser. So we always had to wait until there was a new, matching version. The customer didn't like this at all and stopped the implementation of the tests completely. Unfortunately, we were unable to find a solution to this problem.
@aarondfrancis
@aarondfrancis 2 ай бұрын
I'm surprised that a matching chrome driver wasnt released at the same time! That's a bummer. It should be more controllable in CI, presumably
@helloworld7796
@helloworld7796 2 ай бұрын
Dusk is a nice setup. Though we have to use two builds on our pipeline, one for dusk and a second for prod. Anyway, I see you use light IDE, do you benefit something over dark?
@piusijachi2763
@piusijachi2763 2 ай бұрын
Hey Aaron , love your videos ... quick question how would you automate a registration process without using browser automation. I got asked in a test and i tried mimicking the post request using guzzle but just trying to be sure. Thanks you're amazing
@providenceifeosame6126
@providenceifeosame6126 2 ай бұрын
Awesome Video Aaron, i Learnt a lot
@blessdarah1256
@blessdarah1256 2 ай бұрын
Hi Aaron, could you please make a video about how you study before creating a video? I notice you use paper and markers, and I find that interesting because I do that too. Knowing more about your system could help me improve on what I'm doing for research or learning something new.
@aarondfrancis
@aarondfrancis 2 ай бұрын
Huh that might interesting. Maybe a better blog post but we'll see!
@ALiHameedAlHashemi
@ALiHameedAlHashemi 2 ай бұрын
clean, simple, rich information => thanks
@vuenice
@vuenice Ай бұрын
Do we have tool or cli command for writing dusk test automatically? playwright and cypress do it well, you just have to do operations on page and it will write code for you automatically.
@jnjmedia8321
@jnjmedia8321 2 ай бұрын
Laughing while learning something new to me. haha thanks man
@aarondfrancis
@aarondfrancis 2 ай бұрын
🫡 happy to help! And entertain!
@HasanCivelek-n8e
@HasanCivelek-n8e 2 ай бұрын
I like Dusk! Thank you Aaron. My env settings DUSK_HEADLESS_DISABLED=true not worked. Any idea? I'm using Macos.
@smkishtiak
@smkishtiak 2 ай бұрын
Man you are just awesome!
@cooldude3010
@cooldude3010 2 ай бұрын
📣 that's why he's the GOAT
@lahirulhr
@lahirulhr 2 ай бұрын
Waiting for scraping part 🕸🕷
@npd-taras-shkodenko
@npd-taras-shkodenko Ай бұрын
I have an error: Failed to connect to localhost port 9515 after 0 ms: Connection refused running the command php artisan dusk on Ubuntu 24.04.1 LTS
@brokiama
@brokiama 2 ай бұрын
Incredible video!
@codewithparsa9986
@codewithparsa9986 2 ай бұрын
What a into animation 😱
@kirayamato6128
@kirayamato6128 2 ай бұрын
I love you Aaron ❣️
@silakanveli
@silakanveli 2 ай бұрын
Laravel should have this kind of videos of all the stuff as its documentation is the weakest. Thanks for amazing work!
@hcivelek
@hcivelek 2 ай бұрын
It is super cool!
@RamakrishnaPR
@RamakrishnaPR Ай бұрын
Can you do video on single page application
@ribeiro.evandro
@ribeiro.evandro 2 ай бұрын
Dusk is really amazing, but the syntax is verbose, it would be perfect if it were Pest-style, with a Testing Library-style syntax
@aarondfrancis
@aarondfrancis 2 ай бұрын
Sounds like a fun package for you to make! 👀
@wgblondel
@wgblondel 2 ай бұрын
Is there a way to record (video) Laravel Dusk test sessions?
@aarondfrancis
@aarondfrancis 2 ай бұрын
Hmmm that's a good question. Not that I can think of!
@SickOfMetal
@SickOfMetal 2 ай бұрын
is this like Playwright but inside a Laravel app?
@aarondfrancis
@aarondfrancis 2 ай бұрын
Yeah kinda!
@FelipeFreitasFS
@FelipeFreitasFS 2 ай бұрын
I have used Playwright before dusk, and believe me, they're different worlds in terms of laravel integration and mainly Speed
@Michael4x
@Michael4x 2 ай бұрын
When you gonna switch to dark theme?
@aarondfrancis
@aarondfrancis 2 ай бұрын
Whenever I want
@cherkim
@cherkim 2 ай бұрын
I like ya cut g
@jadersbr
@jadersbr 2 ай бұрын
nice
@jatlineur
@jatlineur 2 ай бұрын
lalarara laravel
@dimitrisborbotsialos
@dimitrisborbotsialos 2 ай бұрын
So it’s like Cypress
@aarondfrancis
@aarondfrancis 2 ай бұрын
A bit reductive, but sure
@elieobeid77
@elieobeid77 2 ай бұрын
PHP for browser automation feels wrong
@aarondfrancis
@aarondfrancis 2 ай бұрын
And yet, so right
@olafghanizadeh
@olafghanizadeh 2 ай бұрын
First
@onisama93
@onisama93 Ай бұрын
Are you getting paid by Laravel?
Laravel Pennant: first-party feature flags
14:21
Aaron Francis
Рет қаралды 18 М.
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 47 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 17 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
Valve CONFIRMS New Hardware
18:35
NerdNest
Рет қаралды 14 М.
Laravel vs Rails for Javascript developers
19:50
Sam Lewis
Рет қаралды 5 М.
Write Laravel, not PHP (feat. Aaron Francis) | 029
58:45
Backend Banter
Рет қаралды 19 М.
Laravel's secret weapon: macros (watch me code)
23:46
Aaron Francis
Рет қаралды 23 М.
PHP is the future
34:27
Aaron Francis
Рет қаралды 179 М.
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 292 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 88 М.
Laravel Octane: supercharge your Laravel applications
8:34
Aaron Francis
Рет қаралды 44 М.
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 106 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 17 МЛН