article view, content README: What is this HUB?

README: What is this HUB?

This HUB is defining the test data for E2E Playwright tests for Purple Experience.

You can find the test code here: https://gitlab.sprylab.com/testautomation/purple-experience.

The idea is that all the content that gets published from here is available as a constant data source for the tests. The test code can then blindly rely on the article data from here, without the need of having code to create, publish, and eventually unpublish and delete articles for each test.

Drawback: We have to be super careful with the article data in this HUB. Whenever we make modifications to this HUB, we could accidentally break the Test Automation Pipeline. So, as a good practice, when modifying the content here (e.g. because you are adding new content that is needed for a new test you are currently writing), always run all the tests again to see if any of them suddenly starts failing. If yes, either adjust that test so that it can better handle this new data, or revert your change.

Kind regards,
Erik 🙂

Home
Newsstand
Newsfeed
Search