Skip to main content

18 posts tagged with "Software Testing"

View All Tags

JavaScript E2E Testing Frameworks Compared

· 25 min read
Daniel Caldas
Co-founder

This blog post gives detailed insights into the most prevalent JavaScript E2E (end-to-end) testing frameworks. We break down our article into two main sections:

  1. Our experience - we tried six different frameworks by writing the same test case on the same web application and provided detailed pros/cons of working with those technologies. All the code examples are available in our js-e2e-testing-frameworks repository on GitHub.
  2. Deep dive - to help you decide the best framework for your project, we pulled together many different data sources - e.g., the state of JS survey, social networks, GitHub, etc. We evaluate each framework across four categories: feature set, adoption & popularity, DX (developer experience), and maintenance.

Web Application Testing: Aiming for Balance

· 9 min read
Daniel Caldas
Co-founder

It's 2022, and automation is on the rise. The number of software testing tools, libraries, and platforms available increases daily. What different aspects of web applications should you be testing? Which ones should you automate? And when and how should you employ manual testing?

How to Block a Request URL in Chrome

· 9 min read
Daniel Caldas
Co-founder

You want to know what your app does when one request never arrives. The recommendations API is down: does the product page still render? The analytics script is blocked by a visitor's ad blocker: does checkout still work? The font CDN times out: does the text show at all?

The quickest way to find out is to block that request URL in the browser and look. This guide shows three ways to do it in Chrome, what the page receives when you do, and which one to pick.

How to Simulate HTTP Request Errors

· 4 min read
Daniel Caldas
Co-founder

Errors handling is part of our work as developers. You can try to ignore them at first, but to offer a good user experience, you don't want your website breaking just because one of the API endpoints decided to give up on you. These days we try to find clever workarounds to run our applications with a graceful degradation strategy. We build software to work in an optimal environment while providing certain fallbacks not to break the experience entirely when there's some disturbance in the system (e.g., lousy network condition, CPU lag, etc.).

This post is a short, hands-on walkthrough: one demo app, one simulated 500, and the fix that gets the UI out of a stuck loading state. For the full list of failures worth testing (401, 422, 429, network errors, timeouts, malformed JSON) with a rule for each, read How to Test Error States in Your Frontend App.

5 Tips for Effective Puppeteer Automation

· 4 min read
Daniel Caldas
Co-founder

In our "Complete Guide to Test Chrome Extensions with Puppeteer", we've covered all you need to know to get you up to speed on setting up end-to-end testing for a chrome extension. The fact is that many elements of the article can be brought to traditional front-end applications.

To truly deliver to you the complete knowledge we've acquired, we've decided to write this tiny, complementary blog post, where we'll cover ad-hoc topics, let's call it tips & tricks, to help you work with Puppeteer.

Test Chrome Extensions With Puppeteer: Full Guide

· 13 min read
Daniel Caldas
Co-founder

Here's what we cover in this article:

  • Motivation to perform e2e testing on browser extensions.
  • Why Puppeteer and known limitations.
  • A complete example of a functional chrome extension and a sample React application.
  • A complete example of a puppeteer + jest set up to run your automation.

All the code referenced in this article can be found in our repo tweak-extension/puppeteer-test-browser-ext.

Simulate Delays in HTTP Requests

· 4 min read
Daniel Caldas
Co-founder

There might be a few reasons why we would want to delay an HTTP request:

  • You want to test how your UI behaves to a slow response from an upstream service.
  • There's a race condition in my code, and I suspect that it happens when the request to A is slower than the request B.
  • You want to show off that beautiful loading animation you've been working on all day!

How to Mock API Calls in the Browser (2026 Guide)

· 18 min read
Daniel Caldas
Co-founder

To mock an API call is to answer a request your app makes with a response you wrote, instead of the one the server would send. The app cannot tell the difference: it receives the JSON, the status code and the headers you chose, and renders whatever they lead to.

You need it more often than you would think. The endpoint you are building against does not exist yet. A bug only shows up with a payload you cannot reproduce. The staging server is down on demo day. You want to see the screen for a 500, an empty list or a response that takes eight seconds. In all of these, waiting for the backend is the slow option.

This guide covers what mocking is, the three ways to do it and their trade-offs, then shows step by step how to mock a response right in the browser with tweak: no code, no proxy, no change to your app.