Skip to content

← All questions

Why does healing never kick in for expectHidden()?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Every positive assertion in our page object heals fine. This one never does:

ts
async assertBannerGone() {
  await this.errorBanner.expectHidden();
}

assert is in heal.actions, the context has a role, a name and a test id. The step fails with an ordinary Playwright assertion error and there is no entry in heal.jsonl for it. Is expectHidden just not wired up yet?

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related