mammoth-arm-34681
05/20/2021, 7:01 AMcy.request({
method: 'GET',
url: `https://api.twilio.com/2010-04-01/Accounts/${accountSid}/Messages.json?PageSize=${MESSAGES_LIMIT}&To=${phoneNumber}`,
auth: {
username: accountSid,
password: authToken,
}
})
and for each of them delete:
cy.request({
method: 'DELETE',
url: `https://api.twilio.com/2010-04-01/Accounts/${accountSid}/Messages/${message.sid}.json`,
auth: {
username: accountSid,
password: authToken,
}
});
and then wait for a new incoming message