Hack sectional

This commit is contained in:
Pierre Jacquier
2025-03-10 18:09:21 -04:00
parent 434f1045ef
commit 9744d13d4f
2 changed files with 38 additions and 24 deletions

View File

@ -1435,30 +1435,42 @@ sketch002 = startSketchOn('XZ')
// TODO: this test hits a case that happens sometimes in manual testing where
// we can't edit the sweep right after its creation. As if the codemod didn't fully
// register during the initall add flow.
// await test.step('Edit sweep via feature tree selection works', async () => {
// await toolbar.openPane('feature-tree')
// const operationButton = await toolbar.getFeatureTreeOperation('Sweep', 0)
// await operationButton.dblclick({ button: 'left' })
// await cmdBar.selectOption({ name: 'True' }).click()
// await cmdBar.expectState({
// commandName: 'Sweep',
// headerArguments: {
// Target: '1 face',
// Trajectory: '1 segment',
// Sectional: '',
// },
// stage: 'review',
// })
// await cmdBar.progressCmdBar()
// await toolbar.closePane('feature-tree')
// await toolbar.openPane('code')
// await editor.expectEditor.toContain(editedSweepDeclaration)
// await editor.expectState({
// diagnostics: [],
// activeLines: [editedSweepDeclaration],
// highlightedCode: '',
// })
// })
await test.step('Edit sweep via feature tree selection works', async () => {
await toolbar.openPane('feature-tree')
const operationButton = await toolbar.getFeatureTreeOperation('Sweep', 0)
await operationButton.dblclick({ button: 'left' })
await cmdBar.selectOption({ name: 'True' }).click()
await cmdBar.expectState({
commandName: 'Sweep',
headerArguments: {
Target: '1 face',
Trajectory: '1 segment',
Sectional: '',
},
stage: 'review',
})
const submitButton = page.getByRole('button', { name: 'Submit command' })
await submitButton.press('Shift+Backspace')
await cmdBar.selectOption({ name: 'True' }).click()
await cmdBar.expectState({
commandName: 'Sweep',
headerArguments: {
Target: '1 face',
Trajectory: '1 segment',
Sectional: '',
},
stage: 'review',
})
await cmdBar.progressCmdBar()
await toolbar.closePane('feature-tree')
await toolbar.openPane('code')
await editor.expectEditor.toContain(editedSweepDeclaration)
await editor.expectState({
diagnostics: [],
activeLines: [editedSweepDeclaration],
highlightedCode: '',
})
})
await test.step('Delete sweep via feature tree selection', async () => {
await toolbar.openPane('feature-tree')