it's so good when i'm having a hard time understanding a topic and i end up finding a video like this, congratulations man, you clearly show how the intercept works in a nice way, GREAT VIDEO!
@artembondar65773 жыл бұрын
Happy to hear that!
@studywith-grace3 жыл бұрын
Highly recommend this instructor's full course on Udemy 😊
@kaname2232 жыл бұрын
Great video , how do you intercept dynamic request payload ? example , every time you add cart item , the request array values changes (the array include more than 200 value
@sayon19954 жыл бұрын
Nice videos dude, i love them!
@artembondar65774 жыл бұрын
Thanks man! :)
@ankitkumar-ih8qo3 жыл бұрын
I want to test for POST data (you take example as registration for like email, password), to send data to "backend i.e in database", Could you please suggest me, How can I do that ?
@marcellifaria Жыл бұрын
How can we modify response status to mock a behavior ?
@rcbchowdarytumati12244 жыл бұрын
Great video. Could you please do videos on JavaScript for javascript
@artembondar65774 жыл бұрын
I am not a JS expert so probaply not
@mateusvitorino3 жыл бұрын
When do you used this command (intercept) with POST methods, it sends the request to your database? Or the request is just intercept?
@artembondar65773 жыл бұрын
Depends on how you configure it. You can intercept the request and provide own response, in this case it will not send data to backend. Or you can intercept response from server and do something with it before it will be processed by browser
@Ashokkumarg83 жыл бұрын
I perform a operation in UI and during that time list of api calls would be loaded into Network tab. How can I verify those API Status is 200? Would intercept work?
@artembondar65773 жыл бұрын
Yes it will. In response handler get the response and assert status
@@artembondar6577 I tried with same for GET, POST call. But received the error like No requests were created. I have done with cy.intercept with full url, call name, body etc.,
@artembondar65773 жыл бұрын
@@Ashokkumarg8 Well, it means you did something wrong. Probably you didn't match the URL that you were going to intercept. All need to debug.
@ravisaikota57893 жыл бұрын
Hi, how to use bearer token? my application has token to get the data. how work with that?
@artembondar65773 жыл бұрын
This token needed to establish connection to your API. You should put this token in the header of API request with name "Authorization"
@hajune75583 жыл бұрын
How to reuse fixture json file? :D
@artembondar65773 жыл бұрын
cy.fixture('yourFile.json').as('myFile') Then you can call cy.get('myFile'). But it's redundant. You can call cy.fixture() whenever you need your fixture file
@ppp.13343 жыл бұрын
Hi Artem, maybe its time to publish something '@New'
@artembondar6577 Жыл бұрын
I regularly publish something new on Udemy. As well as keeping it up to date.
@ppp.1334 Жыл бұрын
@@artembondar6577 a added this comment year ago 🙂 Cheers
@ZornStolz2 жыл бұрын
hero
@bohdanromanovich49123 жыл бұрын
When I search cy.intercept() in youtube, removing some old methods (I don't now how they work also) and raplacing it with a new method without any explanation is not what i want to see)) confusing video