move focus
This commit is contained in:
@ -3956,10 +3956,7 @@ test.describe('Regression tests', () => {
|
||||
// Make sure it's not a link
|
||||
await expect(zooLogo).not.toHaveAttribute('href')
|
||||
})
|
||||
test(
|
||||
'Position _ Is Out Of Range... regression test',
|
||||
{ tag: '@focus' },
|
||||
async ({ page }) => {
|
||||
test('Position _ Is Out Of Range... regression test', async ({ page }) => {
|
||||
const u = await getUtils(page)
|
||||
// const PUR = 400 / 37.5 //pixeltoUnitRatio
|
||||
await page.setViewportSize({ width: 1200, height: 500 })
|
||||
@ -4030,8 +4027,7 @@ test.describe('Regression tests', () => {
|
||||
thing: "blah"`)
|
||||
|
||||
await expect(page.locator('.cm-lint-marker-error')).toBeVisible()
|
||||
}
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
test.describe('Sketch tests', () => {
|
||||
@ -5952,9 +5948,10 @@ test.describe('Testing segment overlays', () => {
|
||||
await expect(page.locator('.cm-content')).toContainText(expectFinal)
|
||||
}
|
||||
test.setTimeout(120000)
|
||||
test('for segments [line, angledLine, lineTo, xLineTo]', async ({
|
||||
page,
|
||||
}, testInfo) => {
|
||||
test(
|
||||
'for segments [line, angledLine, lineTo, xLineTo]',
|
||||
{ tag: '@focus' },
|
||||
async ({ page }, testInfo) => {
|
||||
await page.addInitScript(async () => {
|
||||
localStorage.setItem(
|
||||
'persistCode',
|
||||
@ -6055,7 +6052,8 @@ test.describe('Testing segment overlays', () => {
|
||||
constraintType: 'angle',
|
||||
expectBeforeUnconstrained:
|
||||
'angledLine({ angle: 3 + 0, length: 32 + 0 }, %)',
|
||||
expectAfterUnconstrained: 'angledLine({ angle: 3, length: 32 + 0 }, %)',
|
||||
expectAfterUnconstrained:
|
||||
'angledLine({ angle: 3, length: 32 + 0 }, %)',
|
||||
expectFinal: 'angledLine({ angle: angle001, length: 32 + 0 }, %)',
|
||||
ang: ang + 180,
|
||||
locator: '[data-overlay-toolbar-index="1"]',
|
||||
@ -6114,7 +6112,8 @@ test.describe('Testing segment overlays', () => {
|
||||
steps: 8,
|
||||
locator: '[data-overlay-toolbar-index="3"]',
|
||||
})
|
||||
})
|
||||
}
|
||||
)
|
||||
test('for segments [yLineTo, xLine]', async ({ page }) => {
|
||||
await page.addInitScript(async () => {
|
||||
localStorage.setItem(
|
||||
@ -6589,7 +6588,7 @@ const part001 = startSketchOn('XZ')
|
||||
codeToBeDeleted
|
||||
)
|
||||
}
|
||||
test('all segment types', { tag: '@focus' }, async ({ page }) => {
|
||||
test('all segment types', async ({ page }) => {
|
||||
await page.addInitScript(async () => {
|
||||
localStorage.setItem(
|
||||
'persistCode',
|
||||
|
||||
Reference in New Issue
Block a user