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