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

Using simple quotes on a flow will raise an error

Thithip opened this issue · comments

Description

When using simple quotes on the YAML Flow file, the build fails with the following error:

.testing_the_text_page_driver.dart:29:43: Error: String starting with ' must end with '.
      await tester.expectVisible(r'Thithip's text');

Steps To Reproduce

  1. Creating a Flow Step with a single quote inside, for example:
- expectVisible: "Thithip's text"
  1. Run tests with Fluttium: fluttium test flows/text_flow.yaml
  2. See error

Expected Behavior

The Flow test will run.

Additional Context

I'm sending a PR to try to fix this....

Which version of the CLI are you on? As far as I know I fixed this in #40 already

Ah sorry my bad, this is still an issue indeed. Mostly because I have added the r in front of it 😅

Yes, and I try to fix this with the PR #88

But this is maybe not the best way to do it 😅