Skip to content

test(sync): wait for the manual save instead of the autosave - #9744

Merged
mejo- merged 2 commits into
mainfrom
fix/sync_test
Nov 30, 2026
Merged

mejo- merged 2 commits into
mainfrom
fix/sync_test

Conversation

@mejo-

@mejo- mejo- commented Nov 30, 2026

Copy link
Copy Markdown
Member

Every test's edit triggers an autosave a second later that the server throttles. cy.wait('@save') picked up that autosave, so the tests downloaded or uploaded the file while the real save was still running. Since saving and closing moved to pagehide, the sendBeacon test loses that race most of the time.

Assisted-by: ClaudeCode:claude-opus-5-5

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

Every test's edit triggers an autosave a second later that the server
throttles. cy.wait('@save') picked up that autosave, so the tests
downloaded or uploaded the file while the real save was still running.
Since saving and closing moved to pagehide, the sendBeacon test loses
that race most of the time.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
@mejo- mejo- self-assigned this Nov 30, 2026
@mejo- mejo- added tests If you write them we ♥ you 3. to review labels Nov 30, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Nov 30, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Nov 30, 2026
@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Nov 30, 2026
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

When opening the file takes more than ten seconds after the upload, the
server no longer throttles the autosave that follows the edit. It then
saves everything, so closing, the save button and the unload beacon
send no save at all and the tests time out waiting for one.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Jonas <jonas@freesources.org>
@mejo-

mejo- commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

/backport d9f2b79 to stable35

@mejo-
mejo- merged commit 4fedbec into main Nov 30, 2026
66 checks passed
@mejo-
mejo- deleted the fix/sync_test branch November 30, 2026 16:53
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review AI assisted This PR contains AI-assisted commits tests If you write them we ♥ you

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

2 participants