ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Laravel Dusk: painless browser automation

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 65

  • @logsnroll
    @logsnroll หลายเดือนก่อน +49

    Laravel's ecosystem is so damn good!

  • @CookingCoding
    @CookingCoding หลายเดือนก่อน +10

    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 😅

  • @wevertonlotosport
    @wevertonlotosport หลายเดือนก่อน +5

    Omg! Aaron keep up reviewing all laravel packages, I will try dusk right now

  • @milenkostadinov8702
    @milenkostadinov8702 16 วันที่ผ่านมา +1

    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 :)

  • @vijaysmarthome
    @vijaysmarthome หลายเดือนก่อน +9

    what a timing on the video!! I am planning on integrating the Dusk into one of my open source projects today.

    • @mohamedabdulkadirosman3594
      @mohamedabdulkadirosman3594 หลายเดือนก่อน

      I was searching the best way to test filamentphp and I saw this!!, right on time. Thank you

  • @skygnd
    @skygnd หลายเดือนก่อน +3

    18:38 this multiple browser thing would be good solution for testing real time messaging like things... I really loved it!

  • @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.

  • @FarazSamapoor
    @FarazSamapoor หลายเดือนก่อน +1

    Very cool example at the end. Thank you for going the extra mile to keep everyone engaged and pumped! 🚀

  • @khaledwaleed7009
    @khaledwaleed7009 หลายเดือนก่อน +3

    You’re making everything look so damn easy I really love your videos. Also a real life example of everything that amazing ❤

  • @Strammeiche
    @Strammeiche หลายเดือนก่อน +2

    Quite good integration. Laravel really is a great framework with a ton of useful things.

  • @ronoudgenoeg2682
    @ronoudgenoeg2682 หลายเดือนก่อน +1

    This channel lately has made me want to play around with Laravel.... even though I haven't done web dev in like 5 years..

  •  หลายเดือนก่อน +1

    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  หลายเดือนก่อน

      Haha I don't know golang! So... probably not!

    •  หลายเดือนก่อน +1

      @@aarondfrancis perfect! we can learn with you, you didnt know laravel dusk before

  • @ivanjelenic5627
    @ivanjelenic5627 หลายเดือนก่อน

    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.

  • @rand0mtv660
    @rand0mtv660 หลายเดือนก่อน

    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.

  • @SuperHighFiveGuy
    @SuperHighFiveGuy หลายเดือนก่อน

    "when some product guy comes along... ...because that's how real users work"
    That's savage and I'm here for it.

  • @knightofrohan
    @knightofrohan หลายเดือนก่อน +3

    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  หลายเดือนก่อน +4

      You absolutely could! Cool huh

  • @TobiasRohde
    @TobiasRohde หลายเดือนก่อน +1

    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  หลายเดือนก่อน +1

      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

  • @jnjmedia8321
    @jnjmedia8321 หลายเดือนก่อน +1

    Laughing while learning something new to me. haha thanks man

    • @aarondfrancis
      @aarondfrancis  หลายเดือนก่อน +1

      🫡 happy to help! And entertain!

  • @ALiHameedAlHashemi
    @ALiHameedAlHashemi หลายเดือนก่อน

    clean, simple, rich information => thanks

  • @providenceifeosame6126
    @providenceifeosame6126 หลายเดือนก่อน

    Awesome Video Aaron, i Learnt a lot

  • @vuenice
    @vuenice 2 วันที่ผ่านมา

    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.

  • @lahirulhr
    @lahirulhr หลายเดือนก่อน

    Waiting for scraping part 🕸🕷

  • @blessdarah1256
    @blessdarah1256 หลายเดือนก่อน

    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  หลายเดือนก่อน +1

      Huh that might interesting. Maybe a better blog post but we'll see!

  • @RamakrishnaPR
    @RamakrishnaPR 38 นาทีที่ผ่านมา

    Can you do video on single page application

  • @smkishtiak
    @smkishtiak หลายเดือนก่อน

    Man you are just awesome!

  • @piusijachi2763
    @piusijachi2763 หลายเดือนก่อน

    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

  • @helloworld7796
    @helloworld7796 หลายเดือนก่อน

    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?

  • @brokiama
    @brokiama หลายเดือนก่อน

    Incredible video!

  • @user-ro5jy9vh9b
    @user-ro5jy9vh9b หลายเดือนก่อน

    I like Dusk! Thank you Aaron. My env settings DUSK_HEADLESS_DISABLED=true not worked. Any idea? I'm using Macos.

  • @codewithparsa9986
    @codewithparsa9986 หลายเดือนก่อน

    What a into animation 😱

  • @cooldude3010
    @cooldude3010 หลายเดือนก่อน +1

    📣 that's why he's the GOAT

  • @hcivelek
    @hcivelek หลายเดือนก่อน

    It is super cool!

  • @kirayamato6128
    @kirayamato6128 หลายเดือนก่อน

    I love you Aaron ❣️

  • @silakanveli
    @silakanveli หลายเดือนก่อน

    Laravel should have this kind of videos of all the stuff as its documentation is the weakest.
    Thanks for amazing work!

  • @ribeiro.evandro
    @ribeiro.evandro หลายเดือนก่อน

    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  หลายเดือนก่อน +1

      Sounds like a fun package for you to make! 👀

  • @cherkim
    @cherkim หลายเดือนก่อน

    I like ya cut g

  • @wgblondel
    @wgblondel หลายเดือนก่อน

    Is there a way to record (video) Laravel Dusk test sessions?

    • @aarondfrancis
      @aarondfrancis  หลายเดือนก่อน +1

      Hmmm that's a good question. Not that I can think of!

  • @jadersbr
    @jadersbr หลายเดือนก่อน

    nice

  • @Michael4x
    @Michael4x หลายเดือนก่อน

    When you gonna switch to dark theme?

  • @SickOfMetal
    @SickOfMetal หลายเดือนก่อน

    is this like Playwright but inside a Laravel app?

    • @aarondfrancis
      @aarondfrancis  หลายเดือนก่อน

      Yeah kinda!

    • @FelipeFreitasFS
      @FelipeFreitasFS หลายเดือนก่อน

      I have used Playwright before dusk, and believe me, they're different worlds in terms of laravel integration and mainly Speed

  • @jatlineur
    @jatlineur หลายเดือนก่อน

    lalarara laravel

  • @dimitrisborbotsialos
    @dimitrisborbotsialos หลายเดือนก่อน

    So it’s like Cypress

    • @aarondfrancis
      @aarondfrancis  หลายเดือนก่อน

      A bit reductive, but sure

  • @elieobeid77
    @elieobeid77 หลายเดือนก่อน +4

    PHP for browser automation feels wrong

    • @aarondfrancis
      @aarondfrancis  หลายเดือนก่อน +9

      And yet, so right

  • @onisama93
    @onisama93 3 วันที่ผ่านมา

    Are you getting paid by Laravel?

  • @olafghanizadeh
    @olafghanizadeh หลายเดือนก่อน

    First