Framework for System testing Theia Applications - Philip Langer

Subscribers:
24,000
Published on ● Video Link: https://www.youtube.com/watch?v=jDt9TU0Apts



Duration: 5:24
213 views
4


Unit and integration testing is straightforward for Theia! The extensive availability of Javascript testing frameworks takes care of the groundwork for unit testing and Theia’s dependency-injection-based architecture makes even integration testing a breeze. However, what about system testing?

While there are also many browser automation frameworks available, such as Webdriver, Puppeteer and more recently Playwright, developing stable and lean system tests for complex applications from scratch is a time-consuming process. This is largely due to the complex user interface of a typical Theia-based application, but also in the nature of system tests in general. These tests have to automate complex UI interactions and simultaneously account for variations in response time and wait for the right conditions before the next steps can be performed or assertions about the application state can be verified.

In this lightning talk we demonstrate a page object framework for Theia based on the popular browser automation framework Playwright (https://playwright.dev). The Theia page object library encapsulates many of the complex aspects of writing system tests for Theia applications, while still being extensible