Questions tagged hybrid
Scenarios that seed through the API and assert in the browser, or the reverse.
9 questions
Our streaming endpoint returns 200 and then dies mid-stream, and nothing catches it
The API steps assert on a completed response, which is fine until the response is a stream. Ours opens with a 200, sends a few events and then fails halfway — and is perfectly…
asked by Kostya Petrov7,903 ·The UI says saved and no row is written — how do I assert on the database?
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…
asked by Hsu Wei-lin15,230 ·Signup verification email — is there any way to assert on an inbox?
Our signup funnel is: register, receive an email, click the link, land verified. I can test the first step and the last step and nothing in between, so the coverage stops exactly…
asked by Zeynep Arslan64 ·Why one fixture set for ui, api and hybrid, and which of the fixtures are worker-scoped?
Reading steps/fixtures.ts in the project I inherited and trying to work out what I am extending. Two things I cannot find a straight answer to. Why is there one test rather than…
asked by Ingrid Solberg241 ·Migrating a Cucumber suite: what replaces the World object we keep scenario state in?
Our Cucumber suite keeps everything on the World: the id of the record the last step created, the current user, a couple of counters, and a response object that three later steps…
asked by Rasha Halabi572 ·An admin approves what a standard user submitted — how do two roles fit in one scenario?
The flow we need to cover: a standard user submits an expense claim, an admin approves it, and the standard user sees it move to approved. @user:standard gives me one role. I…
asked by Anouk de Vries238 ·Chaining a created id into a UI assertion: JSON path $.id is undefined in the last response
Trying to seed through the API and assert in the browser, which is the whole reason we picked this thing. The endpoint definitely returns an id, I checked with curl.
asked by Bea Lindqvist4,318 ·Every checkout scenario spends 40 seconds registering a user through the sign-up form first
Thirteen checkout scenarios, and each one starts by filling in the six-field registration form, confirming an email, and setting a password. That is about forty seconds before…
asked by Fiona McAllister159 ·Can a scenario be tagged @ui and @api at once? Lint says "found @hybrid @ui @api"
The scenario seeds a record over the API and then checks it renders in the browser, so it genuinely is both. I tagged it as both and got: Three? I only wrote two. The @hybrid is…
asked by Vikram Rajagopal1,240 ·