Yep. That's the sound of your lapel mic pop filter rubbing against your shirt.
@FNZ-wx2nz6 күн бұрын
This is not very useful in real-world applications. When testing page structure, you want to verify the placement of web elements on the screen, their size, shape, and so on. Neither visual testing nor this API is optimal for that.
@itGuyInDeutschland6 күн бұрын
And this will resolve that flaky snapshot comparison test :)
@powertester55967 күн бұрын
Already started using this. Much more better alternative in terms of maintenance compared to snapshots since snapshots are OS / device dependent and very hard to maintain for runs on local/CI. This is perfect :).
@ibrahimblahblahyapyap8 күн бұрын
Crazy jump going from CucumberJS to Playwright, this is way better!
@sen86sen8 күн бұрын
Will playwright extensions support JAVA .. ??
@FPchie11 күн бұрын
Can Aria snapshot test be used to replace all playwright's isVisible test for each element/component on a Dashboard UI?
@pranavbelgaonkar961714 күн бұрын
I am using Playwright with Cucumber JS; is the Aria snapshot feature supported in the Cucumber framework?
@ProfessorSauvaje14 күн бұрын
first :D
@keninen224515 күн бұрын
@Playwright Clear explanation and useful feature. Could you answer me one question: at 6:04 you import test from playwright/test instead of the location where you defined your fixtures, why is that? Is the page fixture already predefined?
@sen86sen15 күн бұрын
what is discord ?
@michaelquiros476815 күн бұрын
I´ll try snapshots on my project, thanks for the update💯
@bukresanin15 күн бұрын
"In our .gitHub folder"? Where?
@MrRoa2816 күн бұрын
How I can setup needed tests by tag in the playwright.config file? Like I did it by filepath e.g. testMatch: ['path/to/test']?
@snehaangadi931616 күн бұрын
To run the playwright tests on cloud browsers , should the test application(application url) should also be on cloud? is it mandatory?
@snehaangadi931616 күн бұрын
To run the tests on cloud hosted browsers , should the test application also be on cloud? My test application is on on-prem , can I still run the tests with this service?
@patrick93ferreira18 күн бұрын
It would be interesting if the Playwright/Microsoft team could create a tool to test mobile apps, for example developed in react native, as the market has a gap in this area
@Diablorf18 күн бұрын
indeed
@alleluiaizimpamvu997115 күн бұрын
I upvote this idea, it a quite challenge to get an awesome tool to test native Mobile apps
@patrick93ferreira15 күн бұрын
@@alleluiaizimpamvu9971 Neste momento utilizo o Detox para testar app desenvolvida em React Native e é como o Playwright na sintaxe
@JuanDavidDavilaMejia19 күн бұрын
Hi, I can not get run the test without headless mode, Can someone help me, please?
@ArthurClairFR19 күн бұрын
You can"t compare the Debbie O'Brien"s videos with these slow motion videos.
@mourad-zitouni20 күн бұрын
This is just amazing! Love the record at cursor feature, thank you!
@E2EOnpremUser21 күн бұрын
Please highlight the language (node.js) in the title, nothing to see here if you are using playwright pytest
@sl981s21 күн бұрын
so awesome...
@nilson_nieto21 күн бұрын
I would like to know what should I do to apply to work in Playwright ? It's a great tool and I feel motivate to participate in such as high impacting tool.
@powertester559622 күн бұрын
That’s a great feature to add to playwright. Thanks!
@henriquealmeida34822 күн бұрын
Pleeease remove stale screenshots automatically.
@sen86sen19 күн бұрын
What is Stale screenshots ?
@henriquealmeida34819 күн бұрын
@sen86sen I meant screenshots that are no longer being taken. Playwright should delete all the screenshots that weren't taken in a all-tests run, if we provide a flag for it.
@sen86sen19 күн бұрын
@ that’s a great idea actually .. and thanks for the explanation and your time
@garretwar23 күн бұрын
Дімон старається поняти шо відбуваєтсья, як може))
@d1xonellaofficial22 күн бұрын
Та Дімон сидить в ахірє
@sen86sen23 күн бұрын
I can see change only on Node.js release notes for 1.49.0 and not on Java side will it take time ?
@Playwrightdev22 күн бұрын
The other languages get updated usually 1-2 weeks after the normal release happens in order to pick up potential bugfixes.
@sen86sen19 күн бұрын
@@Playwrightdev Thank you I found the changes for Java and thanks for the quick push within 2 days. I believe the quicker from Playwright will helpful in SDET's to taste the features on their IDE's and the execution. Thanks Simon Knott & Dimtry ...
@sen86sen19 күн бұрын
@@Playwrightdev I tried snapshots with Java_Eclipse environment and it worked well for Positive scenarios but in case of failed tests I am not be able to see the error on the particular failure like you have achieved instead I got the error like below. Exception in thread "main" org.opentest4j.AssertionFailedError: Locator expected to match Aria snapshot: - banner: - heading "Playwright enables awasome end-to-end testing for modern web apps." [level=1] - link "Get started" - link "Star microsoft/playwright on GitHub" - link /[\d,.]+[bkmBKM]+\+ stargazers on GitHub/ Received: {raw=- banner: - heading "Playwright enables reliable end-to-end testing for modern web apps." [level=1] - link "Get started" - link "Star microsoft/playwright on GitHub": Star - link "67k+ stargazers on GitHub": 67k+, regex=- banner: - heading "Playwright enables reliable end-to-end testing for modern web apps." [level=1] - link "Get started" - link "Star microsoft/playwright on GitHub" - link /[\d,.]+[bkmBKM]+\+ stargazers on GitHub/} Call log: - Locator.expect with timeout 5000ms - waiting for getByRole(AriaRole.BANNER) 9 × locator resolved to <header class="hero hero--primary heroBanner_UJJx">…</header> - unexpected value "- banner: - heading "Playwright enables reliable end-to-end testing for modern web apps." [level=1] - link "Get started" - link "Star microsoft/playwright on GitHub": Star - link "67k+ stargazers on GitHub": 67k+" at com.microsoft.playwright.impl.AssertionsBase.expectImpl(AssertionsBase.java:74) at com.microsoft.playwright.impl.LocatorAssertionsImpl.matchesAriaSnapshot(LocatorAssertionsImpl.java:336) at com.microsoft.playwright.assertions.LocatorAssertions.matchesAriaSnapshot(LocatorAssertions.java:2190) at rl149.Sanpshot149.main(Sanpshot149.java:38) Can anyone encounter the same kind of error on Java_Eclipse ?
@tririfandani187623 күн бұрын
Snapshot aria testing is interesting
@AnonYmous-kf7uu27 күн бұрын
Any idea when Playwright will support mobile device native apps and browsers? Responsive web is great and all but it's not the same as running on a real device.
@binitpatel28 күн бұрын
How do you compare, this service with browsersstack or saucelab? Can this be combined with slack reporting and would this work with drone CICD?
@dellavita346328 күн бұрын
How to setup normal playwright and playwright ct in same repo ? I work on monorepo so I need both playwright type 😢
@ValorHeart28 күн бұрын
If my testable server is in local cloud environment, how the browsers can approach it?
@salva-dev29 күн бұрын
Awesome!!. Brilliant work. Congratulations. That's why I love playwright, you guys just keep making it better. 👍
@reeawn29 күн бұрын
Pricing?
@soumyajit443Ай бұрын
Amazing ! Kudos to the entire team for making Playwright equipped with more useful features. Keep going and thanks again for sharing the content so clearly.
@soumyajit443Ай бұрын
Mam , Thanks for this amazing video. Can you share the code please or make a github repository and share all the test code.
@joshuayolles6962Ай бұрын
Nice!!
@sarathr4495Ай бұрын
Simple and effective .
@BiShop_MaАй бұрын
Thanks for sharing. What if my playwright.config.ts does not live under the root, how should I pass the customized playwright config path?
@PlaywrightdevАй бұрын
npx playwright test --config foo/bar/playwright.config.ts See here: playwright.dev/docs/test-cli#reference
@vh3104Ай бұрын
Please make a video about the playwright using the docker container. I've been trying to start Java tests on the server using the playwright container for 2 days and nothing works! =)
@daniel29009Ай бұрын
Thanks for you work, i like playwright from what I see. I can recommend not to use mocks in any testing framework, since you are potentially hard coding your REST layer assumtions that are potentially to change in the near future. My best advice is to look into something like talkback npm and record your back end communication automatically, that way you never deal with writing out mock logic and can update any time. Your test at runtime then is pointed to a mock back end, which is recorded from a real back end. So the tests never know what back end they are using...
@JeremyPolleyАй бұрын
These videos are so great. Thanks for sharing them with us.
@2252kasiaАй бұрын
Can we run headless with client cert?
@PlaywrightdevАй бұрын
Yes it should all just work! If not - please file a bug on GitHub, thanks!
@vitaliypotapov8994Ай бұрын
Do you have any plans to show diff between real and mocked responses on a single screen in UI mode? I think it would be helpful!
@vitaliypotapov8994Ай бұрын
I think the approach should be used with caution for e2e testing. If one day response format change, for example the field gets renamed to `rating_avg`, the test will "live in own world" and report false positive result. As mentioned in other comments, it's useful to assert real response at least in one test. Or, as we do in our tests, assign values to API response with a helper function, that additionally checks the path-to-prop existence in real response structure.
@Kranael93Ай бұрын
And now its not only possible for REST APIs its also possible for Websocket!!! Love it!
@ratrtechАй бұрын
What about web applications with SSR? Especially those that are using e.g CMS as their backend where almost each day content makers can changed data?
@DebbieOBrienАй бұрын
you have to decide what is important to test and what should be mocked. What is important for the user to see. For example a recommended movie might always change so this could be mocked cause it doesn't matter which movie is shown just that one is shown and is clickable etc. Again it all depends on the application you are testing
@ratrtechАй бұрын
The problem is not in what to mock, but how to mock cause with SSR and next Js apps there is no any api requests in the console that could be intercepted and mocked. You just get the whole page already rendered from the server
@kailashpathak9184Ай бұрын
I always loves the mocking concept. Thanks Deb !!
@daniel29009Ай бұрын
White box mocking with assumtions about json and other http parts is a dangerous practice, see my comment at the top.
@laczupakabra13Ай бұрын
From one hand mocking API responses to check page behavior is great specially when we are not able to arrange test data, but... from the other hand hardcoded validations as on presented example are super bad think to do. In this particular example, I would extract rating value up to test preconditions setup and pass it to the API mock and assertion. Overall I found that super useful! Thumbs up!
@rostyslavznachenko7472Ай бұрын
I disagree on that one. You can mock the data to see if your frontend responds correctly to various scenarios, which gives you consistent/stable/quick results. Then, you can create a single test without mocking, but with intercept and validating the actual response schema is valid (and adding more tests for backend controller will give you more confidence). Once verified, it's "happy days"
@laczupakabra13Ай бұрын
@@rostyslavznachenko7472 I fully agree with your statement, but I cant see in which part you are disagree, let me rephrase my point: in my opinion the only bad think in this video is "magic string" in the assertion. Overall POC example is simple and clear.
@christophermccandless5351Ай бұрын
My company recently switched from Selenium to Playwright. I did a lot of research, and rewriting of some of our existing selenium tests in Playwright so that I could demo to our senior testers why playwright is so much better! I immediately fell in love with playwright and so has most of our team now.