End2End Testing with Frontastic
So, you're almost ready to release an update but you want to make sure everything works End-to-End (E2E). You can install and maintain your own testing system that's separate to Frontastic but will work with your site. In this article, we'll show you how you can go about setting this up (but not a full step by step guide as it will depend on the Continuous Integration System you want to use).
Firstly, you'll need to reach out to us to get a test project. We'll provide you with a separate project from your existing one so it can be designated just for testing. As a Developer, you'll have full control of the displayed data and as it's not a part of your 'real' project, Frontend Managers won't be able to accidentally change the test fixtures.
Then, you can set up your E2E-Testing infrastructure.
You can use any Continuous Integration System to do this, but you'll need some add-ons. For example, if you're using Jenkins CI or GitLab CI, you'll need to add Selenium or Browserstack.
Within your Testing Project in Frontastic, you could create all Pages, Routes and all Features that you could use in your Project so as to test every possibility.
In the future, we'll provide you with a web-hook capability so you can trigger your E2E tests after a successful deployment to the Staging environment. But in the meantime, you can just start the deployment manually when you want to. See this article for more info on Deployment.
You can then execute your E2E-Testing infrastructure against these Pages in your Testing Project and check the results.
Once your tests have run successfully, you're now ready to deploy to Production using the Deployment section within the Developer App in Backstage.