leancodepl / patrol

Flutter-first UI testing framework. Ready for action!
https://patrol.leancode.co
Apache License 2.0
904 stars 139 forks source link

[docs] The "Ignoring Exceptions" section in the "Tips & Tricks" page has a mistake #2277

Open ReubenTurner-esusu opened 3 months ago

ReubenTurner-esusu commented 3 months ago

There is a snippet on this page that reads:

var exceptionCount = 0;
dynamic exception = $.tester.takeException();
while (exception != null) {
  exceptionCount++;
  exception = $.tester.takeException();
}
if (exceptionCount != 0) {
  $.log('Warning: $exceptionCount exceptions were ignored');
}

However, the PatrolTester and PatrolIntegrationTester classes do not have a log method.

fylyppo commented 3 months ago

Ah, thanks. There should be print() instead