Year: 2022

Introduction The React testing library is a powerful library used for testing React components. The library helps generate mock events to simulate user input and helps query the DOM as a normal user would. It also provides functionalities such as finding form elements by their label text and links and buttons from their text. The…

Working in the shared space of Salesforce causes developers to run into issues. SOQL limits, timeouts, callout sequencing, and more frustrate us. So how do you run large, complex jobs in the cloud platform without worrying about timeouts or exceeding platform limits? Enter batch Apex to execute these large complex jobs. This post discusses what…

The end goal of test automation is to ease the process of testing web pages. If test automation isn’t written in a well-structured manner, then the testing process becomes ambiguous and ineffective. In Selenium, Page Factory optimizes test instances created using the page object model (POM). The POM ensures that tests are written in a…

Salesforce is a powerful CRM platform, but testing is essential to ensure your Salesforce implementation is working correctly. It’s crucial to have a quality assurance (QA) plan in place. Salesforce QA testing will help you identify potential issues with the business processes, customizations, and other aspects of the Salesforce Lightning Platform for app development. This…

Test automation makes verifying an application’s behavior more straightforward and consistent. Unlike manual testing, automated testing can test even the smallest unit, such as a single method, without running the entire app. Usually, to perform automated tests, you’ll need a testing library. Mocha is one such library. You can test one or more methods in your…

Testing is essential to the development process to ensure code quality and functionality. Testing can be performed manually or automated. Automated tests require less time to execute and are more efficient to run, so it’s a good idea to automate the test cases you plan to run repeatedly. This blog post will cover two of…

Mocha is a robust JavaScript test framework that has gained popularity among developers and companies. It’s an extensive test framework that can be utilized to perform both unit tests and functional tests. However, setting up and configuring Mocha can be a bit tricky.  This blog post provides a comprehensive guide on Mocharc – that will…

The React Testing Library is made on top of the DOM testing library. It has become popular quickly because most unit test cases written in it resemble real user interactions. Writing test cases for asynchronous tasks like API calls are often complicated. This post will look into the waitFor utility provided by the React Testing…

Sometimes, while writing tests with tools like Mocha, you may want to perform certain operations before the tests. These operations might include the initial setup of global services or resources and configuration for the tests. Mocha’s beforeEach method makes these test setups easier and reduces code duplication. Mocha has several hooks, including before, after, beforeEach,…

Writing unit test cases is an import task for a developer. With proper unit testing, you’ll have fewer bugs in the final product. This post will compare two popular testing libraries for React applications: the React Testing Library and Enzyme. We’ll also go through some code examples and show you the strengths and weaknesses of…