Skip to content

Conversation

@AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Nov 13, 2025

  • Closes

Additional details

Steps to test

How has the user experience changed?

PR Tasks


Note

Migrates file IO and fixture handling to TypeScript, updates importing sites and fs typings, and converts/updates unit tests and snapshots.

  • TypeScript Migration:
    • Convert packages/server/lib/files.jsfiles.ts and packages/server/lib/fixture.jsfixture.ts with equivalent async APIs (readFile, readFiles, writeFile, get, etc.).
    • Update consumers to named imports: xhrs.ts and socket-base.ts use fixture.get as fixtureGet; privileged-commands-manager.ts imports * as files.
  • FS Utilities:
    • Add fs.readJsonAsync typing in lib/util/fs.ts; use it in files.ts and util/file.ts (remove ts-ignore usage).
  • Behavior/Plumbing:
    • Preserve fixture resolution/encoding logic and queuing; minor typing annotations and @ts-expect-error where needed.
  • Tests:
    • Convert packages/server/test/unit/files_spec.jsfiles_spec.ts; update fixture_spec.ts to ESM/TS imports and context setup.
    • Add snapshot __snapshots__/fixture_spec.ts.js for invalid JSON error.

Written by Cursor Bugbot for commit 9ebb342. This will update automatically on new commits. Configure here.

@AtofStryker AtofStryker self-assigned this Nov 13, 2025
contents,
}
})
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unresolved Promises Break File Selection

The readFiles function returns an array of unresolved promises instead of awaiting them. The original code used Bluebird.map() which waits for all promises to resolve, but the new code uses Array.map() with an async callback, which immediately returns an array of promises. This breaks the selectFile command as callers expect resolved file data, not promises.

Fix in Cursor Fix in Web

@cypress
Copy link

cypress bot commented Nov 13, 2025

cypress    Run #67328

Run Properties:  status check failed Failed #67328  •  git commit 9ebb342e75: remove only
Project cypress
Branch Review chore/server-files-p3
Run status status check failed Failed #67328
Run duration 14m 32s
Commit git commit 9ebb342e75: remove only
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 33
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 831
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 8679
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  44.19%
  Untested elements 192  
  Tested elements 156  
Accessibility  98.46%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 96  

Tests for review

Failed  e2e/privileged_commands.cy.ts • 8 failed tests • 5x-driver-electron

View Output

Test Artifacts
privileged commands > in spec file or support file > passes in test body Test Replay
privileged commands > in spec file or support file > handles extra, unexpected arguments Test Replay
privileged commands > in spec file or support file > passes in test body .then() callback Test Replay
privileged commands > in spec file or support file > passes in spec function Test Replay
privileged commands > in spec file or support file > passes in imported function Test Replay
privileged commands > in spec file or support file > passes in support file global function Test Replay
privileged commands > in spec file or support file > passes in spec file custom command Test Replay
privileged commands > in spec file or support file > passes in support file custom command Test Replay
Failed  commands/querying/querying.cy.ts • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  e2e/origin/cookie_behavior.cy.ts • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  commands/cookies.cy.js • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts
Failed  commands/actions/check.cy.ts • 0 failed tests • 5x-driver-electron

View Output

Test Artifacts

The first 5 failed specs are shown, see all 936 specs in Cypress Cloud.

Flakiness  e2e/origin/config_env.cy.ts • 1 flaky test • 5x-driver-inject-document-domain-chrome:beta

View Output

Test Artifacts
cy.origin- Cypress.config() > serializable > overwrites different values in secondary if one exists in the primary Test Replay
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > stops waiting when an xhr request is canceled
    </td>
  </tr></table>

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants