Skip to content

Conversation

@pierremtb
Copy link
Contributor

@pierremtb pierremtb commented May 1, 2025

Fixes #6584. Works locally but the new tests don't appear to work yet

Fixes #6584. Works locally but the new tests don't appear to work yet
@qa-wolf
Copy link

qa-wolf bot commented May 1, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@vercel
Copy link

vercel bot commented May 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 1:59pm

selection.artifact &&
selection.artifact.type !== 'sweep' &&
selection.artifact.type !== 'plane' &&
selection.artifact.type !== 'compositeSolid' &&
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Irev-Dev I just added to the existing codepath here for point and click var declarations 🤷

Comment on lines 118 to 132
await test.step(`Delete ${operationName} operation via feature tree selection`, async () => {
await toolbar.openPane('feature-tree')
const ftOp = await toolbar.getFeatureTreeOperation(operationName, 0)
await ftOp.click({ button: 'left' })
await page.keyboard.press('Delete')
await scene.settled(cmdBar)
await toolbar.closePane('feature-tree')

// Expect changes in ft and code
await toolbar.openPane('code')
await editor.expectEditor.not.toContain(operation.code)
await expect(
await toolbar.getFeatureTreeOperation(operationName, 0)
).not.toBeVisible()
})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow this wasn't working well locally

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which line was failing? I'm guessing this one?

        await editor.expectEditor.not.toContain(operation.code)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It just doesn't delete in the test, so weird. Working on it now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went with right click -> Delete and that seems much better

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is it possible that execution and population of the feature tree were taking longer than the test could allow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added scene.settled, should be better I think!

@pierremtb pierremtb changed the title Can't Delete Union From Feature Tree Enable Boolean op deletion from the feature tree May 2, 2025
@pierremtb pierremtb marked this pull request as ready for review May 2, 2025 13:46
@pierremtb pierremtb enabled auto-merge (squash) May 2, 2025 13:46
Copy link
Contributor

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed using the sample code from #6584 on a local build that this fixes the issue. Thanks!

@pierremtb pierremtb merged commit 00553c3 into main May 2, 2025
46 checks passed
@pierremtb pierremtb deleted the pierremtb/issue6584-Cant-Delete-Union-From-Feature-Tree branch May 2, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't Delete Union From Feature Tree

3 participants