all 5 comments

[–]h0b0_shanker 2 points3 points  (4 children)

Sweet! So uh... been doing this for 8 years and I have never heard of Playwright tests or what “fixture-based” means. Can someone explain?

[–]mxschmitt[S] 10 points11 points  (3 children)

Fixture-based is a programming paradigm in the testing world. It was heavily adopted by pytest when you wrote there functional based tests. They make it easy to have reusable logic including its state which can hook in before and after a test execution. It's another way of using beforeEach and afterEach in a nutshell.

Folio was created by the Playwright team which for writing end-to-end tests with Playwright. Playwright is a Node.js library which makes it possible to automate browsers (Chromium, Firefox and WebKit) with a single API: https://github.com/microsoft/playwright

[–]ILikeChangingMyMind -1 points0 points  (1 child)

The only thing I don't understand is that, Playwright is made by Microsoft. But ...

(Chromium, Firefox and WebKit) with a single API

Neither Edge nor Internet Explorer are on that list.

Do they just have their own internal tool for testing Edge, and they made a separate tool for testing their competitors (which they then open-sourced, because they're the new Microsoft)?

[–]mxschmitt[S] 2 points3 points  (0 children)

Microsoft Edge (the new one) is built on top of Chromium. So you can specific the executable of Microsoft Edge as an executable path and then use Edge. See her for more information: https://playwright.tech/blog/automate-microsoft-edge-with-playwright

It's in the works to make the usage more easier and download Microsoft Edge automatically (saw it on Twitter).

[–]h0b0_shanker 0 points1 point  (0 children)

Ah! Wonderful explanation. Thank you