print out screenshots

This commit is contained in:
Sarah Jamie Lewis 2023-01-31 19:43:22 -08:00
parent 611d8e97fa
commit a33dc1b6e5
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ StepDefinitionGeneric TakeScreenshot() {
final bytes = await context.world.appDriver.screenshot();
final screenshotData = base64Encode(bytes);
print("EMBEDDING SCREENSHOT....");
print("$screenshotData");
context.world.attach(screenshotData, 'image/png', 'And I take a screenshot');
} catch (e, st) {
print("FAILED TO EMBED??? $e $st");