Skip to content

← All questions

The UI says saved and no row is written — how do I assert on the database?

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.

We keep getting the same class of bug: the form submits, the toast says saved, the UI shows the new item from local state, and nothing was persisted. It survives every UI assertion we have because the UI is not lying about what it believes.

I can see there is a database configured for SDODS itself. Is there a step to assert against our application's database from a scenario?

3 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