Skip to content

Commit

Permalink
Merge branch 'main' into jtran/mattmundell/cm-kcl-hi-args
Browse files Browse the repository at this point in the history
  • Loading branch information
jtran authored Feb 14, 2025
2 parents fc86ed0 + 8dd2571 commit 4749d91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions e2e/playwright/point-click.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2448,19 +2448,18 @@ extrude002 = extrude(sketch002, length = 50)
await context.addInitScript((initialCode) => {
localStorage.setItem('persistCode', initialCode)
}, initialCode)
await page.setBodyDimensions({ width: 1000, height: 500 })
await page.setBodyDimensions({ width: 1200, height: 500 })
await homePage.goToModelingScene()
await scene.waitForExecutionDone()

// One dumb hardcoded screen pixel value
const testPoint = { x: 550, y: 295 }
const testPoint = { x: 580, y: 320 }
const [clickOnCap] = scene.makeMouseHelpers(testPoint.x, testPoint.y)
const shellTarget = hasExtrudesInPipe ? 'sketch002' : 'extrude002'
const shellDeclaration = `shell001 = shell(${shellTarget}, faces = ['end'], thickness = 5)`

await test.step(`Look for the grey of the shape`, async () => {
await toolbar.closePane('code')
await scene.expectPixelColor([128, 128, 128], testPoint, 15)
await scene.expectPixelColor([113, 113, 113], testPoint, 15)
})

await test.step(`Go through the command bar flow, selecting a cap and keeping default thickness`, async () => {
Expand Down
1 change: 1 addition & 0 deletions e2e/playwright/sketch-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,7 @@ profile003 = circle({ center = [6.92, -4.2], radius = 3.16 }, sketch001)

await page.setBodyDimensions({ width: 1000, height: 500 })
await homePage.goToModelingScene()
await scene.waitForExecutionDone()
await expect(
page.getByRole('button', { name: 'Start Sketch' })
).not.toBeDisabled()
Expand Down

0 comments on commit 4749d91

Please sign in to comment.