new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Playwright · API reference · all subjects

apiresponseassertions/methods

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

APIResponseAssertions.toBeOK method

The toBeOK method ensures the response status code is within the 200..299 range. It has been available since v1.18. In JavaScript: await expect(response).toBeOK(). In Java (alias isOK): assertThat(response).isOK(). In Python async: await expect(response).to_be_ok(). In Python sync: expect(response).to_be_ok(). In C#: await Expect(response).ToBeOKAsync().

APIResponseAssertions.NotToBeOK method

The NotToBeOK method is the opposite of toBeOK and is available in Python (both async and sync variants, since v1.19). In Python async: await expect(response).not_to_be_ok(). In Python sync: expect(response).not_to_be_ok().

Give your agent this brain