docs: document expect.fail method (#11003)