write a custom command that checks the request for the element, put it in the before each (if you dont want for the whole suite, just add beforeEach inside the context) then check the response for the desired element, if the beforeEach fails, the test will skip