Have you heard of the TestCafe and are you using it?

We began utilizing TestCafe for our Cloud Apps E2E UI test,  and just thought we'd share our experience with you.

What is TestCafe and why use it? You can read it here https://testcafe.io/.

Our Learnings:

  • Test the user flow: Use a minimal amount of e2e tests and only test what is necessary as part of the user flow.
  • Prepare test data well: Whenever possible, create a prepared page with all test data setup e.g.,  a pull request for our Bitbucket apps or a macro with a Confluence page. This reduces the amount of steps we have to do in the test.
  • Compare the image output: When it comes to rendered output, compare screenshots, instead of having many .expect(). We use pixelmatch for the comparison between the base image and the actual render output. Note, that you need to be careful to only compare the screenshots of the same browser and mode (headless vs regular).
  • Use Roles for Authentication: Use TestCafe's Roles (https://testcafe.io/documentation/402845/guides/advanced-guides/authentication) for authentication. It also allows you to switch between different users, while doing the login for each user only once

 

 

robot drinking coffee (1).png

Useful refs:

 

 

Interested to see how we testified to our own Atlassian apps? Ping us for more details.

✉️☎️ team@mibexsofware.com 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events