Skip to content

← All questions

HEAL_FAILED: nothing scored above 0.6 and testId probed at 0.00

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.

text
Could not locate "signed-in username" (getByTestId('sidenav-username')) and no healing candidate scored ≥ 0.6.
Probed: role=0.42, testid=0.00, label=0.00. Add role/name/testId/label to the heal context or fix the locator.

The context is:

ts
readonly username = this.heal.locator(this.page.getByTestId('sidenav-username'), {
  role: 'status', name: 'Signed in as', testId: 'sidenav-username',
  label: 'Signed in as', description: 'signed-in username',
});

What I cannot work out is testid=0.00. It is the same test id the primary uses, so of course it found nothing — but then why probe it at all? And where does 0.42 come from?

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