#5576 Fix coredump hotkey on linux (#7577)

* fix hotkey combination for coredump on linux

* add test
This commit is contained in:
Andrew Varga
2025-06-23 17:01:40 +02:00
committed by GitHub
parent 599ab33e40
commit 7ce0ef770a
2 changed files with 30 additions and 1 deletions

View File

@ -1617,4 +1617,33 @@ sketch001 = startSketchOn(XZ)
// Verify error is still visible
await expect(page.locator('.cm-lint-marker-error')).toHaveCount(1)
})
test('Core dump hotkey', async ({ page, scene, cmdBar, homePage }) => {
await page.addInitScript(async () => {
localStorage.setItem(
'persistCode',
`sketch001 = startSketchOn(XZ)
profile001 = circle(sketch001, center = [-100.0, -100.0], radius = 50.0)
`
)
})
const viewportSize = { width: 1200, height: 800 }
await page.setBodyDimensions(viewportSize)
await homePage.goToModelingScene()
await scene.connectionEstablished()
await scene.settled(cmdBar)
const modifier = process.platform === 'darwin' ? 'Meta' : 'Control'
await page.keyboard.press(`${modifier}+Shift+.`)
const toast1 = page.getByText('Starting core dump...')
await expect(toast1).toBeVisible()
const toast2 = page.getByText('Core dump completed')
await expect(toast2).toBeVisible()
})
})

View File

@ -175,7 +175,7 @@ function CoreDump() {
),
[]
)
useHotkeyWrapper(['mod + shift + .'], () => {
useHotkeyWrapper(['mod + shift + period'], () => {
toast
.promise(
coreDump(coreDumpManager, true),