Skip to content

tests: set the response only in When steps - #4121

Open
v-scharf wants to merge 1 commit into
mainfrom
test/set-response-only-in-when-steps
Open

v-scharf wants to merge 1 commit into
mainfrom
test/set-response-only-in-when-steps

Conversation

@v-scharf

Copy link
Copy Markdown
Contributor

Follow-up to the review of #3771: helpers and Given/Then steps no longer store their response with setResponse(), so a Then step can't pass on a response left over from an earlier step.

  • favorite helpers (used by Given steps too) only return the response
  • preview Given/Then and "space should contain these entries" Then steps pass the response explicitly
  • "renames file with id ..." and "sets property ..." are declared as When (they are only used as When)
  • wopi, trashbin, colon path and revisions cleanup helpers return the response to their When steps

Left as they are: the retry steps (search, tags, "should eventually match") that re-fetch on purpose, and the multi-request helpers that collect status codes.

Helpers and Given/Then steps no longer store their response, so a Then
step can't pass on a response left over from an earlier step:
- favorite helpers, used by Given steps too, return the response
- the preview Given/Then steps and the space entry Then steps pass their
  response explicitly instead of storing it
- the rename by file id and set property steps are When steps
- the wopi, trashbin, colon path and revisions cleanup helpers return the
  response to their When steps
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@saw-jan

saw-jan commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

@v-scharf there's no woodpecker CI running for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants