silly-student-97216
02/06/2023, 8:40 PMit(${event.u.user} is NOT able to create an app by graphQL "createOneApp", () => {
cy.createOneApp(appName, event.u.user, (response: { status: any; body: any }) => {
expect(response.status).to.eq(403);
expect(response.body.data).eq(null);
assert.equal(response.body.errors[0].message, 'Forbidden resource');
});
});gray-kilobyte-89541
02/07/2023, 12:26 AMcy.request? Probably the simplest thing is by using https://github.com/bahmutov/cypress-time-marks and I will add a lesson to my (paid) course https://cypress.tips/courses/network-testing with such examplegray-kilobyte-89541
02/07/2023, 12:37 AMduration from the object yielded by the cy.requestsilly-student-97216
02/07/2023, 3:02 AMsilly-student-97216
02/07/2023, 3:20 AMexpect(response).to.have.property('duration').lessThan(500);