INTRODUCING SAFETEST: A NOVEL APPROACH TO FRONT END TESTING
UI tests have traditionally been conducted through either unit testing or end-to-end (E2E) tests. Both approaches have tradeoffs. With unit tests, you have control over what to render and how the underlying services and imports should behave. However, you lose the ability to interact with an actual page. With E2E tests, you have control over the page but deal with pain points like the inability to make assertions on mocks and test segments of the app. SafeTest aims to address these issues by having a snippet of code in the application bootstrapping stage that injects hooks to run tests. It uses Playwright to run regular tests, thereby achieving ideal browser control. SafeTest also provides reports on when and how any failures occurred which include playback videos or steps to reproduce the failure.