Testing a PDF file with Cypress
A guide on using Cypress to test PDF file downloads and verify their contents, including parsing PDFs with a custom script.
Filip Hric shares expert insights on test automation, Playwright, WebdriverIO, and secure development practices. Explore practical tutorials, tips, and AI-driven approaches to improve testing efficiency and reliability.
65 articles from this blog
A guide on using Cypress to test PDF file downloads and verify their contents, including parsing PDFs with a custom script.
A guide to testing geolocation features in web applications using Cypress, covering API mocking and browser permission handling.
A technical guide on using Cypress's .selectFile() command to upload files in automated tests, covering frontend integration and hidden input elements.
A guide to eight common mistakes developers make when using the Cypress testing framework, with practical solutions to avoid them.
A guide on using Cypress and the browser's Performance API to measure frontend performance, specifically timing modal window interactions.
Explains core principles of Cypress command chains, including parent, child, and dual commands, to help write better automated tests.
A technical guide on how to programmatically handle Google Sign-In (OAuth 2.0) in Cypress tests, bypassing multi-domain limitations.
A guide to managing and switching between different testing environments (like local, staging, production) in the Cypress end-to-end testing framework.
A tutorial on using Cypress for API testing, covering the .request() command, passing arguments, and handling responses.
A guide on avoiding hard-coded waits in Cypress tests, exploring alternatives like timeouts and assertions for better test reliability.
Explains how to properly handle variables and asynchronous commands in Cypress testing, addressing common pitfalls.
A comparison of XPath and CSS selectors for element selection in Cypress testing, including installation and usage examples.
A guide to creating a TypeScript-powered autocomplete system for data-cy selectors in Cypress tests, improving developer experience and safety.
Explores methods for generating random test users in Cypress, including using hooks and external scripts with Faker.js.
A tutorial on testing navigation links using Cypress, covering strategies from simple click tests to more efficient loops and error handling.
A tutorial on how to read and test JSON objects and arrays using the Cypress testing framework, covering dot and bracket notation.
A tutorial on using Cypress to test HTML element attributes, values, and text, with examples for different element types.
Explores the versatile .contains() command in Cypress for selecting elements by text, covering scoping, case-insensitivity, and regex.
A guide to enhancing custom command logs in Cypress for better debugging and test runner experience, including custom error messages and logging.
Practical tips for debugging and stabilizing flaky tests in the Cypress end-to-end testing framework, including using .pause() and console.log().