Testing Algolia API with Playwright #6625
Unanswered
mmorris8
asked this question in
Show and tell
Replies: 1 comment 1 reply
-
In general that is indeed a good option, alternatively you can add a custom searchClient that returns static responses for tests |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In effort to improve my site's relability I've been introducing tests across the board. I'm going to start this thread to share notes.
So my first working test doing this is pretty small.
So I use visual regression testing pretty heavily. I'll likely need to mask the google maps output of this page as I can't control when they'll add new pins. The algoliaResponse json I just captured with Playwright. This page currently gets 191 hits, and I'm pruning this down to three with different attributes so that I can verify their layouts work.
Long term I'll be adjusting this to test how my system reacts to no results.
If anyone else has explored this more than the above and would like to share I'd like to take a look.
Beta Was this translation helpful? Give feedback.
All reactions