expectText method

void expectText(
  1. String text
)

Implementation

void expectText(String text) {
  return RunnerBenchmark.sync('assertion', 'expectText', () {
    if (!isVisible(text)) {
      throw EnsembleTestFailure(
        'Expected text "$text" to be visible. ${failureHint([text])}',
      );
    }
  });
}