Skip to content

← All questions

First UI run: five scenarios fail on the sign-in page, but the API layer was green

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.

Working through the workshop on my own checkout of the sample app. The API layer passed straight away. Then the browser:

bash
sdods run -p rwa-raw -e local -l ui -b chromium -t @smoke

Five failures, and as far as I can tell they are all the same failure:

text
Error: expect(page).toHaveURL(expected) failed

Expected pattern: /\/\*/
Received string:  "http://localhost:3000/signin"
Timeout: 10000ms
A failing URL assertion showing the expected pattern and the received URL ending in /signin
Five scenarios, one cause: the application redirected to its sign-in page

The app is definitely running — the API scenarios hit it. Is the generated suite just wrong?

4 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