Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation in the README for screenshots is wrong #120

Open
ptmkenny opened this issue Sep 4, 2020 · 0 comments
Open

Documentation in the README for screenshots is wrong #120

ptmkenny opened this issue Sep 4, 2020 · 0 comments

Comments

@ptmkenny
Copy link
Contributor

ptmkenny commented Sep 4, 2020

The README says this:

In order to embed a screenshot, you will need to take a screenshot using your favourite webdriver and store it in the following filepath format:

results/html/assets/screenshots/{{feature_name}}/{{scenario_name}}.png

But this is not correct.

In behat.yml, you need to configure it like this:

default:
  suites:
    default:
      paths:
        - "%paths.base%/features"
        - "%paths.base%/site-features"
      contexts:
        - FeatureContext
         - emuse\BehatHTMLFormatter\Context\ScreenshotContext:
           # "assets" needs to be within the reports output_path
           screenshotDir: /app/tests/reports/assets/screenshots
      formatters:
        html:
          # Where to put the HTML report
          output_path: /app/tests/reports

It seems the fix for the issue #88 got committed, so the documentation should be updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant