Skip to content

[stable34] test(behat): reset per-scenario state in BasicStructure and Sharing#60789

Open
backportbot[bot] wants to merge 1 commit into
stable34from
backport/60763/stable34
Open

[stable34] test(behat): reset per-scenario state in BasicStructure and Sharing#60789
backportbot[bot] wants to merge 1 commit into
stable34from
backport/60763/stable34

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 28, 2026

Backport of PR #60763

Add @BeforeScenario hooks to reset auth/server state and sharing state
between scenarios, preventing state bleed across test runs.

- BasicStructure: reset currentUser, currentServer, baseUrl, apiVersion,
  requestToken and cookieJar (baseUrl and currentServer go together via
  usingServer(), so both must be reset)
- Sharing: reset lastShareData, storedShareData and savedShareId

Signed-off-by: Anna Larch <anna@nextcloud.com>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@backportbot backportbot Bot requested a review from a team as a code owner May 28, 2026 07:42
@backportbot backportbot Bot requested review from CarlSchwan, blizzz and miaulalala May 28, 2026 07:42
@backportbot backportbot Bot added this to the Nextcloud 34 milestone May 28, 2026
@backportbot backportbot Bot requested review from ArtificialOwl, icewind1991, leftybournes and provokateurin and removed request for a team May 28, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant