|

Meetup “Automated browser testing”

Another meetup of the Latvian WordPress group took place on the topic “Automated browser testing”. On 29 March 2022, the talk was given by Max Lyuchin from 10up, one of the best-known WordPress companies in the world. The meetup materials are available for download via the links at the bottom of this article. The event was sponsored by JetBrains, who provided two licenses for their products: AppCode, CLion, DataGrip, DataSpell, GoLand, IntelliJ IDEA Ultimate, PhpStorm, PyCharm, ReSharper, ReSharper C++, Rider, RubyMine, WebStorm or dotUltimate.

Automated browser testing

We invite highly qualified experts with vast experience in WordPress development to speak at the technical meetups of the Latvian WordPress group. This time the speaker came from a company that has long held a firm place on the WordPress Olympus. 10up is known not only for its end products, such as highly complex sites, but also for a wide range of tools for developers. Among them are ElasticPress and the cypress testing setup for WordPress used in this talk.

The main question a newcomer asks is why we need tests at all. Max devoted the first part of the talk to the answer. He went through the programming practices and the reasons that make code many times more complex and “fragile”.

Who is to blame is clear. What to do? There is a way out: test systems. The talk and the comments along the way covered the testing hierarchy: unit, integration and acceptance tests. The discussion explained the purpose and role of each kind of tests.

Max accompanied the talk with a live demonstration of installing and configuring the test system. As is customary at our meetups, he presented the steps of his talk as a GitHub repository.

Next, he showed a test plugin, its bottlenecks and the test system. The speaker explained in detail how to write tests in cypress and showed how to use them. Real test runs on real code are something you need to see. Watch our video below!

Finally, we discussed other browser testing systems used in development. The discussion touched on the features, pros and cons of such systems.

During the meetup, we raffled two licenses for the products of our sponsor JetBrains listed above. The winners were Mikhail Kobzarev and Alexey Blinov.

The discussion was quite lively, with suggestions to hold similar events on other levels of testing (unit, integration). Follow the announcements in the Latvian meetup group!

The slides of the talk are here. The meetup recording is available below.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.