Hack sectional
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user