Skip to content

Develop codemirror v6#4067

Open
mmendieta2 wants to merge 7 commits intoprocessing:develop-codemirror-v6from
mmendieta2:develop-codemirror-v6
Open

Develop codemirror v6#4067
mmendieta2 wants to merge 7 commits intoprocessing:develop-codemirror-v6from
mmendieta2:develop-codemirror-v6

Conversation

@mmendieta2
Copy link
Copy Markdown

Issue: #3869

Fixes #
Added tests for stateUtils.js. Testing for file types were added, with no issues. Testing for user prefences were added, although the "autocomplete" div does not get the property "aria-autocomplete" upon creation of the fileState. Testing for tidy code was added, but the keymap itself does not trigger.

Changes:

A new file named stateUtils.test.js was created for testing.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

@release-com
Copy link
Copy Markdown

release-com bot commented Apr 3, 2026

Release Environments

This Environment is provided by Release, learn more!
To see the status of the Environment click on Environment Status below.

🔧Environment Status : https://app.release.com/public/Processing%20Foundation/env-3af4535a2a

@raclim raclim requested a review from khanniie April 16, 2026 12:41
expect(div).not.toBeNull();
});

it('Enables line wrap', () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is this the same test as the one above?

expect(div).toBeNull();
});

it('Enable autocomplete', () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think you will see any autocompletion results if 1. the file content is empty (thus nothing to autocomplete) and 2. the cursor is not near the item to be autocompleted. i think the initial file state would need to be updated to trigger an autocomplete modal, but to be honest if it's too complex we can omit these tests to start with.

expect(div).not.toHaveAttribute('aria-autocomplete', 'list');
});

it('Enables autoclose brackets and quotes', () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here, there will be nothing to "autoclose" if there is no content. I also wonder if autoclose only triggers when you send a typing event like "user just typed ["

@khanniie
Copy link
Copy Markdown
Member

Hi! Thank you so much, testing was definitely greatly needed! I noticed the new test file fails, would you be able to take a second look at some of the failing tests? I took a look and left some comments about why i think they may be failing, but only took a pass through the first few so the others after may also need to be addressed. thanks!

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.

5 participants