This commit is contained in:
Kurt Hutten Irev-Dev
2024-06-07 16:36:01 +10:00
parent f089f97285
commit af2c58a5b0
2 changed files with 0 additions and 12 deletions

View File

@ -3301,7 +3301,6 @@ test.describe('Testing segment overlays', () => {
expectAfterUnconstrained, expectAfterUnconstrained,
expectFinal, expectFinal,
ang = 45, ang = 45,
wait = 100,
}: { }: {
hoverPos: { x: number; y: number } hoverPos: { x: number; y: number }
constraintType: constraintType:
@ -3314,7 +3313,6 @@ test.describe('Testing segment overlays', () => {
expectFinal: string expectFinal: string
ang?: number ang?: number
steps?: number steps?: number
wait?: number
}) => { }) => {
const u = await getUtils(page) const u = await getUtils(page)
await expect(page.getByText('Added variable')).not.toBeVisible() await expect(page.getByText('Added variable')).not.toBeVisible()
@ -3333,8 +3331,6 @@ test.describe('Testing segment overlays', () => {
timeout: 5000, timeout: 5000,
}) })
await page.waitForTimeout(1500)
console.log('first wiggle')
const constrainedLocator = await u.wiggleMove({ const constrainedLocator = await u.wiggleMove({
locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="true"]`, locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="true"]`,
pos: { x, y }, pos: { x, y },
@ -3355,8 +3351,6 @@ test.describe('Testing segment overlays', () => {
await page.locator('#stream').hover({ await page.locator('#stream').hover({
position: { x, y }, position: { x, y },
}) })
await page.waitForTimeout(wait)
console.log('2nd wiggle')
const unconstrainedLocator = await u.wiggleMove({ const unconstrainedLocator = await u.wiggleMove({
locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="false"]`, locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="false"]`,
pos: { x, y }, pos: { x, y },
@ -3418,7 +3412,6 @@ test.describe('Testing segment overlays', () => {
await expect(page.locator('.cm-content')).toContainText( await expect(page.locator('.cm-content')).toContainText(
expectBeforeUnconstrained expectBeforeUnconstrained
) )
console.log('1st wiggle')
const unconstrainedLocator = await u.wiggleMove({ const unconstrainedLocator = await u.wiggleMove({
locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="false"]`, locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="false"]`,
pos: { x, y }, pos: { x, y },
@ -3442,7 +3435,6 @@ test.describe('Testing segment overlays', () => {
await page.locator('#stream').hover({ await page.locator('#stream').hover({
position: { x, y }, position: { x, y },
}) })
console.log('2nd wiggle')
const constrainedLocator = await u.wiggleMove({ const constrainedLocator = await u.wiggleMove({
locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="true"]`, locatorString: `[data-constraint-type="${constraintType}"][data-is-constrained="true"]`,
pos: { x, y }, pos: { x, y },
@ -3560,7 +3552,6 @@ test.describe('Testing segment overlays', () => {
expectAfterUnconstrained: 'angledLine({ angle: 3, length: 32 + 0 }, %)', expectAfterUnconstrained: 'angledLine({ angle: 3, length: 32 + 0 }, %)',
expectFinal: 'angledLine({ angle: angle001, length: 32 + 0 }, %)', expectFinal: 'angledLine({ angle: angle001, length: 32 + 0 }, %)',
ang: ang + 180, ang: ang + 180,
wait: 1000,
}) })
console.log('angledLine2') console.log('angledLine2')
await clickConstrained({ await clickConstrained({
@ -3614,7 +3605,6 @@ test.describe('Testing segment overlays', () => {
expectFinal: 'xLineTo(xAbs002, %)', expectFinal: 'xLineTo(xAbs002, %)',
ang: ang + 180, ang: ang + 180,
steps: 8, steps: 8,
wait: 900,
}) })
}) })
test('for segments [yLineTo, xLine]', async ({ page }) => { test('for segments [yLineTo, xLine]', async ({ page }) => {
@ -3769,7 +3759,6 @@ const part001 = startSketchOn('XZ')
expectFinal: expectFinal:
'angledLineOfXLength({ angle: angle001, length: 23.14 }, %)', 'angledLineOfXLength({ angle: angle001, length: 23.14 }, %)',
ang: ang + 180, ang: ang + 180,
wait: 1000,
}) })
console.log('angledLineOfXLength2') console.log('angledLineOfXLength2')
await clickUnconstrained({ await clickUnconstrained({

View File

@ -7,7 +7,6 @@ import {
getSelectionType, getSelectionType,
getSelectionTypeDisplayText, getSelectionTypeDisplayText,
} from 'lib/selections' } from 'lib/selections'
import { kclManager } from 'lib/singletons'
import { modelingMachine } from 'machines/modelingMachine' import { modelingMachine } from 'machines/modelingMachine'
import { useCallback, useEffect, useRef, useState } from 'react' import { useCallback, useEffect, useRef, useState } from 'react'
import { useHotkeys } from 'react-hotkeys-hook' import { useHotkeys } from 'react-hotkeys-hook'