Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an API test failure on macOS #13732

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

pisv
Copy link
Contributor

@pisv pisv commented May 26, 2024

What it does

Before this fix, Monaco API KeybindingService.resolveKeybinding test was failing on macOS with

AssertionError: expected { label: '⌃⇧⌥⌘K', …(6) } to deeply equal { label: '⌃⇧⌥⌘K', …(7) }
+ expected - actual

{
 "WYSIWYG": true
 "ariaLabel": "⌃⇧⌥⌘K"
+  "chord": false
 "dispatchParts": [
   "ctrl+shift+alt+meta+K"
 ]
 "electronAccelerator": "Ctrl+Shift+Alt+Cmd+K"

The chord: false was removed from the expected object for other platforms as part of #13217.

This fix removes it from the expected object for macOS.

How to test

Run yarn test on macOS.

Review checklist

Reminder for reviewers

Before this fix, Monaco API KeybindingService.resolveKeybinding test was failing
on macOS with

```
AssertionError: expected { label: '⌃⇧⌥⌘K', …(6) } to deeply equal { label: '⌃⇧⌥⌘K', …(7) }
+ expected - actual

{
 "WYSIWYG": true
 "ariaLabel": "⌃⇧⌥⌘K"
+  "chord": false
 "dispatchParts": [
   "ctrl+shift+alt+meta+K"
 ]
 "electronAccelerator": "Ctrl+Shift+Alt+Cmd+K"
```

The `chord: false` was removed from the expected object for other platforms
as part of eclipse-theia#13217.

This fix removes it from the expected object for macOS.
@msujew
Copy link
Member

msujew commented May 28, 2024

@JonasHelming Someone on your side available to review this? Neither Jonah nor I have a Mac.

@rschnekenbu
Copy link
Contributor

@msujew We don't have Macs here either.

@tsmaeder
Copy link
Contributor

I have one at home, but I'm not there right now ;-)

@tsmaeder
Copy link
Contributor

@pisv which test suite is this?

@pisv
Copy link
Contributor Author

pisv commented May 30, 2024

examples/api-tests/src/monaco-api.spec.js

@tsmaeder tsmaeder merged commit 1fc0345 into eclipse-theia:master May 31, 2024
14 checks passed
@pisv pisv deleted the fix-failing-test branch May 31, 2024 08:41
@jfaltermeier jfaltermeier added this to the 1.50.0 milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants