expectNoTextAny method

void expectNoTextAny(
  1. List<String> texts
)

Implementation

void expectNoTextAny(List<String> texts) {
  final candidates = _nonEmptyTexts(texts);
  final visible = <String>[];
  for (final text in candidates) {
    if (isTextVisible(text)) visible.add(text);
  }
  if (visible.isNotEmpty) {
    throw EnsembleTestFailure(
      'Expected none of these texts to be visible, but found: '
      '${visible.map((t) => '"$t"').join(', ')}.',
    );
  }
}