expectTextAny method

void expectTextAny(
  1. List<String> texts
)

Implementation

void expectTextAny(List<String> texts) {
  final candidates = _nonEmptyTexts(texts);
  for (final text in candidates) {
    if (isTextVisible(text)) return;
  }
  throw EnsembleTestFailure(
    'Expected one of these texts to be visible: '
    '${candidates.map((t) => '"$t"').join(', ')}. '
    '${textFailureHint(candidates)}',
  );
}