Skip to content

fix(E2E): save default user settings in test-specific tempdir#3334

Merged
Dave Shoup (shouples) merged 1 commit intomainfrom
djs/fix-modal-editor
Mar 20, 2026
Merged

fix(E2E): save default user settings in test-specific tempdir#3334
Dave Shoup (shouples) merged 1 commit intomainfrom
djs/fix-modal-editor

Conversation

@shouples
Copy link
Copy Markdown
Contributor

Unfortunately, the behavior of the Preferences: Open User Settings (JSON) command changed in a recent VS Code release, and it instead shows a modal editor window instead of directly displaying an editable document:
image

This caused our E2E tests to start failing, since they would always try to navigate the UI, open the user settings.json from the command palette, and then save from the editor in order to apply VS Code settings.

This PR changes the behavior so we save the file directly to the test's (tempdir) user data directory, which VS Code watches and loads from automatically. (Bonus: this also reduces overall test time.)

@shouples Dave Shoup (shouples) requested a review from a team as a code owner March 20, 2026 01:26
@shouples Dave Shoup (shouples) changed the base branch from djs/playwright-triage-skill to main March 20, 2026 15:03
Copilot AI review requested due to automatic review settings March 20, 2026 15:03
@shouples Dave Shoup (shouples) review requested due to automatic review settings March 20, 2026 15:03
@sonarqube-confluent
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Copy Markdown
Contributor

@Cerchie Lucia Cerchie (Cerchie) left a comment

Choose a reason for hiding this comment

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

looks better than dealing with the clipboard!

I ran the scaffolding suite to test, I had some failures on local but I figure that had to do with the state of my docker setup. the ccloud sub-suite passed which told me that this is working

@shouples Dave Shoup (shouples) merged commit d967bd0 into main Mar 20, 2026
14 checks passed
@shouples Dave Shoup (shouples) deleted the djs/fix-modal-editor branch March 20, 2026 15:27
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