Disallow segment selection in all sweeps and change Sketches display name to Profiles (#7045)
* Disallow segment selection in sweep, plus displayName: Profiles for clarity Fixes #7044 * Change selection hints for solid2d to be profile instead of face * Update tests * More fixes * Fix tests following behavior change: we don't select segments in code anymore but profiles
This commit is contained in:
		@ -36,7 +36,7 @@ test.describe('Command bar tests', () => {
 | 
			
		||||
    await u.closeDebugPanel()
 | 
			
		||||
 | 
			
		||||
    // Click the line of code for xLine.
 | 
			
		||||
    await page.getByText(`close()`).click() // TODO remove this and reinstate // await topHorzSegmentClick()
 | 
			
		||||
    await page.getByText(`startProfile(at = [-10, -10])`).click()
 | 
			
		||||
 | 
			
		||||
    await toolbar.extrudeButton.click()
 | 
			
		||||
    await cmdBar.expectState({
 | 
			
		||||
@ -45,10 +45,10 @@ test.describe('Command bar tests', () => {
 | 
			
		||||
      currentArgKey: 'sketches',
 | 
			
		||||
      currentArgValue: '',
 | 
			
		||||
      headerArguments: {
 | 
			
		||||
        Sketches: '',
 | 
			
		||||
        Profiles: '',
 | 
			
		||||
        Length: '',
 | 
			
		||||
      },
 | 
			
		||||
      highlightedHeaderArg: 'sketches',
 | 
			
		||||
      highlightedHeaderArg: 'Profiles',
 | 
			
		||||
    })
 | 
			
		||||
    await cmdBar.progressCmdBar()
 | 
			
		||||
    await cmdBar.progressCmdBar()
 | 
			
		||||
@ -56,7 +56,7 @@ test.describe('Command bar tests', () => {
 | 
			
		||||
      stage: 'review',
 | 
			
		||||
      commandName: 'Extrude',
 | 
			
		||||
      headerArguments: {
 | 
			
		||||
        Sketches: '1 segment',
 | 
			
		||||
        Profiles: '1 profile',
 | 
			
		||||
        Length: '5',
 | 
			
		||||
      },
 | 
			
		||||
    })
 | 
			
		||||
@ -286,7 +286,7 @@ test.describe('Command bar tests', () => {
 | 
			
		||||
    await cmdBar.cmdOptions.getByText('Extrude').click()
 | 
			
		||||
 | 
			
		||||
    // Assert that we're on the selection step
 | 
			
		||||
    await expect(page.getByRole('button', { name: 'sketches' })).toBeDisabled()
 | 
			
		||||
    await expect(page.getByRole('button', { name: 'Profiles' })).toBeDisabled()
 | 
			
		||||
    // Select a face
 | 
			
		||||
    await page.mouse.move(700, 200)
 | 
			
		||||
    await page.mouse.click(700, 200)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user