Change record status: 
Project: 
Introduced in branch: 
9.5.x
Introduced in version: 
9.5.0-rc1
Description: 

AssertBlockAppearsTrait::findBlockInstance() is deprecated.

You can use WebAssert methods instead, for example:

Before

  protected function assertNoBlockAppears(Block $block) {
    $result = $this->findBlockInstance($block);
    $this->assertEmpty($result, sprintf('The block %s should not appear on the page.', $block->id()));
  }

After

  protected function assertNoBlockAppears(Block $block) {
    $this->assertSession()->elementNotExists('xpath', "//div[@id = 'block-{$block->id()}']");
  }
Impacts: 
Module developers