Skip to content

Commit

Permalink
Add e2e test step
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremtb committed Feb 14, 2025
1 parent cb2ecd9 commit ce4b6ec
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
44 changes: 43 additions & 1 deletion e2e/playwright/point-click.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,49 @@ openSketch = startSketchOn('XY')
await scene.expectPixelColor([250, 250, 250], testPoint, 15)
})

await test.step('Delete offset plane via feature tree selection', async () => {
await test.step(`Edit helix through the feature tree`, async () => {
await editor.closePane()
const operationButton = await toolbar.getFeatureTreeOperation('Helix', 0)
await operationButton.dblclick()
const initialInput = '5'
const newInput = '50'
await cmdBar.expectState({
commandName: 'Helix',
stage: 'arguments',
currentArgKey: 'length',
currentArgValue: initialInput,
headerArguments: {
AngleStart: '360',
Axis: 'X',
CounterClockWise: '',
Length: initialInput,
Radius: '5',
Revolutions: '1',
},
highlightedHeaderArg: 'length',
})
await expect(cmdBar.currentArgumentInput).toBeVisible()
await cmdBar.currentArgumentInput.locator('.cm-content').fill(newInput)
await cmdBar.progressCmdBar()
await cmdBar.expectState({
stage: 'review',
headerArguments: {
AngleStart: '360',
Axis: 'X',
CounterClockWise: '',
Length: newInput,
Radius: '5',
Revolutions: '1',
},
commandName: 'Helix',
})
await cmdBar.progressCmdBar()
await toolbar.closeFeatureTreePane()
await editor.openPane()
await editor.expectEditor.toContain('length = ' + newInput)
})

await test.step('Delete helix via feature tree selection', async () => {
await editor.closePane()
const operationButton = await toolbar.getFeatureTreeOperation('Helix', 0)
await operationButton.click({ button: 'left' })
Expand Down
2 changes: 1 addition & 1 deletion src/lib/commandBarConfigs/modelingCommandConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
required: true,
defaultValue: false,
options: [
{ name: 'True', value: true },
{ name: 'False', value: false },
{ name: 'True', value: true },
],
},
radius: {
Expand Down

0 comments on commit ce4b6ec

Please sign in to comment.