top of page
Digital Shelf
It’s more of a personal collection—random things I come across, resources worth remembering, and thoughts I might want to come back to later. Just a place to keep track of it all.


Parametrized Object Methods in Cypress
Parametrized object methods are a key technique for building scalable and maintainable Cypress test suites. Instead of creating multiple methods for similar interactions, a single method can be reused by passing different parameters that control its behavior. This reference page demonstrates how parametrized methods can be applied in a Page Object Model (POM) setup, using form layouts and date picker components as examples. Example Test Using Parametrized Page Object Method
Feb 82 min read


Conditional Object Function
When automating UI tests, navigation menus that expand and collapse dynamically are a common source of flaky tests. If a menu group is already expanded, clicking it again may collapse it - hiding the submenu items and causing test failures. This reference explains a clean, reusable Cypress pattern for safely navigating collapsible menus by ensuring a menu group is expanded only when necessary . The Problem: Collapsible Menus Cause Flaky Tests Consider the following navigati
Feb 71 min read


POM in Cypress - Setup & Usage
This page shows how Page Object Model looks in real Cypress code . Where Page Objects Live Keep all page objects in one place: Important Notes Page objects use .js Test (spec) files use .cy.js Page objects should never contain it() or describe() This separation makes the project easier to understand and maintain. Creating a Page Object File Each page object is a JavaScript class . Basic rules to follow: Class name starts with a capital letter File name matches the class name
Jan 311 min read


Page Object Model
Page Object Model Overview The Page Object Model is a design pattern used in test automation to better organize code and improve reusability and maintainability. At its core, the idea is simple: instead of calling test steps directly in every test, you extract repetitive logic into methods or functions . Rather than repeating the same actions across multiple tests, those actions live in one place and are reused wherever needed. Why Page Object Model Helps Using Page Object M
Jan 183 min read


Cypress: Assertions
Assertions are an essential part of Cypress testing. They allow you to verify that elements exist, are in the correct state, and hold the expected data. Cypress provides powerful, built-in commands for making these assertions using .should()and .and(). What Is an Assertion? An assertion checks that your application behaves the way it should. It can verify visibility, content, length, values, CSS properties, classes, and more. Real-World Example: Asserting a Datepicker Input T
Jul 13, 20251 min read


Cypress: Popups & ToolTips
As a Quality Engineer, one common challenge in automated UI testing is handling popups — especially window.alert, window.confirm, and window.prompt. Cypress makes this easier by allowing you to intercept and stub these native browser dialogs. This guide walks you through practical methods to handle and assert browser dialogs using Cypress, with multiple approaches to validating window.confirm. Handling window.confirm in Cypress Cypress gives us full control over how to respon
Jul 13, 20251 min read
bottom of page