expectText method

void expectText(
  1. String text
)

Implementation

void expectText(String text) {
  final finder = find.text(text);
  if (finder.evaluate().isEmpty) {
    throw EnsembleTestFailure('Expected text "$text" to be visible.');
  }
}