Skip to content

← All questions

First @visual run fails with "A snapshot doesn't exist" and then passes. Bug?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Copied the baseline example out of the guide more or less verbatim:

gherkin
@ui @regression @visual
Scenario: The sign-in page matches its baseline
  Given I am on the sign-in page
  Then the page should match the visual baseline "signin"
bash
sdods run -p rwa-bank -e local -l ui -b chromium -t @visual

It fails:

text
Error: A snapshot doesn't exist at projects/rwa-bank/features/__screenshots__/rwa-bank--ui--chromium/darwin/signin.png, writing actual.

The PNG is sitting there afterwards and the second run is green. So am I supposed to run it twice on purpose, or did I miss a setting somewhere?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related