wolfenrain / fluttium

Fluttium, the user flow testing tool for Flutter

Home Page:https://fluttium.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: Expanded Reporter not taking screenshots

matthiasn opened this issue · comments

Description

When I use --reporter expanded, screenshots are no longer taken.

Steps To Reproduce

  1. Check out https://github.com/matthiasn/lotti
  2. Run $ fluttium test test_flows/habit_flow.yaml -d macOS --reporter expanded

Expected Behavior

The test flow above is the same as in #238, where screenshots are recorded as expected. My expectation here with --reporter expanded would be to produce substantially less logging, and other than that behave in the same way and record screenshots.

Screen recording

fluttium_long_pauses_expanded.mp4

Thank you for opening an issue! I'll try to look into this in the coming week, can't make any big promises as I am still recovering from a heart attack. 😅

A reporter shouldn't ever "stop" actions from performing, and it seems the storing of the screenshots is no longer being handled correctly on the expanded reporter.

Edit: Seems I never changed the logic behind how files are stored, and only the pretty reporter currently does it... will fix that ✌️

Get well soon please ❤️‍🩹