Torchlight 2 is a “hack and slash” game with a lot of grinding involved. My group of friends and me decided to cheat on our last day playing the game, so we could have a taste of that sweet loot before uninstalling the game. I think it’s fair 🤓
Tag: tutorial

I have been hearing about “no-code” solutions for a while but never had the chance to use one. The concept is interesting because programming is usually a barrier for the average person. If they are not required to code, many more people would be able to develop digital and automated solutions to their problems.
Goal
Let’s say I want to create a website with a curated list of local clubs and other infrastructures that promote a high quality of life.
Categories
Tips & Tricks for Cypress

🏆 This post was featured in Software Testing Weekly, issue 55
This is a collection of simple and recurring scenarios when writing Cypress tests. For more complex recipes, check the official doc.
- Setup
- Abort cypress after first failed test
- Read a test file from fixtures
- Assertions
- Assert the text of a page (string or number)
- Assert the number of elements selected
- Assert the result of two Cypress commands
- Actions
- Upload a file
- Selectors
- Given a list, return row that contains specific text
- Selector is flaky due to page redesigns
- Type text into input field and press enter
- Select element inside iframe
- Use selector X to narrow down area, and then use selector Y to find element
- Waits
- Wait until a network (ie. HTTP/XHR) request resolves
- Wait until a condition becomes true
- Mocks
- Force a specific response to an HTTP request
Categories
Cypress: PageObjects using inheritance
Scenario:
- Your web site is deployed on several countries. The behaviour of the page you want to test (e.g. sign up) is mostly the same across countries, however some business rules change per country.
- You are using the PageObjects pattern to encapsulate the details of each page. You want to avoid duplicated code.