Blog: Unlocking the Mystery: Deciphering the Enigmatic Code of URL's Glob Patterns in cy.intercept()

Hi QA friends!
My new Cypress article is out!

Unlocking the Mystery: Deciphering the Enigmatic Code of URL’s Glob Patterns in cy.intercept(), !

This is how starts:

" Glob Patterns: A Hilarious Journey through Slashes and Asterisks!

ACT 1: EXPOSITION

I don’t know about you, but I almost never manage to nail down a Glob Pattern URL on the first try when using it in cy.intercept().

Sure, it seems easy enough at first glance! But let’s be honest—most of the time, you don’t get it right on the first attempt, either!

And that’s Okay. I promise I won’t judge you if you don’t judge me. :wink:

So, I decided to unravel this enigma once and for all, crafting the definitive solution with strategies and even a cheat sheet that will help us nail down these URL glob patterns in our Cypress interceptions—making this article the ultimate Baba Yaga of glob patterns, striking fear into the heart of any misplaced “path segment”!"

If you want to know how it ends and became the ultimate master of URL’s Glob Patterns in cy.intercept(), just read it. I promise you will not be disappointed.

And don’t forget to follow me, leave a reaction, or comment if you like it!

Cheers!

Attached is the master Cheat Sheet of URL Glob Patterns
URL-glob-patterns_highlight.pdf (98.5 KB)

2 Likes