You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Thank you for showing interest in my work. Sorry I haven't worked with mocking API's much but surely I will look into this issue and get back if I fin anything
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I tried to mock an API in my project playwright with cucumber js but I didn't succeed:
the code that I implement in the step:
await page.route( '**/emobgapi/v1/offers?country-of-residence=FR&offset=0&limit=10&pickup-station-code=ORYT01&drop-off-station-code=ORYT01&pickup-date=2024-01-08T10:00&drop-off-date=2024-01-22T10:00&driver-age=26&apikey=sL7SEuCNdoBj8SilHttiSPRLnwpFSD92', route => { route.fulfill({ status: 200, contentType: 'application/json', path: '~/tests/acceptance/searchAPI.json', }); },
and I create
searchAPI.json
file where I put the response of this request.Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions