here is one of the versions of my code.. it.only('Validate the service "cmd=PRE_INIT" in
https://s2l.sendtonews.com/stn_trk.gif▾
', () => {
cy.visit('https://peterdev.sendtonews.com/demo/QA_test_player.html')
cy.intercept({
method: 'POST',
url: '/stn_trk.gif?*',
query: {
session: '2jW1INtvM0OzIdRf',
age: '221021',
},
hostname: 's2l.sendtonews.com',
}).as('cmd')
//cy.wait('@cmd').its('response.statusCode').should('eq', 200);
cy.wait('@cmd').its('request.url').should('include', 'cmd')
})
})