expectText method

void expectText(
  1. String text
)

Implementation

void expectText(String text) {
  if (!isTextVisible(text)) {
    throw EnsembleTestFailure(
      'Expected text "$text" to be visible. ${textFailureHint([text])}',
    );
  }
}