Tweak some tests for MacOS

This commit is contained in:
Frank Noirot
2025-04-04 21:22:26 -04:00
parent 752518d2a4
commit 83e04a1140
3 changed files with 6 additions and 6 deletions

View File

@ -714,7 +714,7 @@ openSketch = startSketchOn(XY)
// Colors // Colors
const edgeColorWhite: [number, number, number] = [220, 220, 220] // varies from 192 to 255 const edgeColorWhite: [number, number, number] = [220, 220, 220] // varies from 192 to 255
const edgeColorYellow: [number, number, number] = [251, 251, 40] // vaies from 12 to 67 const edgeColorYellow: [number, number, number] = [251, 251, 70] // vaies from 12 to 67
const faceColorGray: [number, number, number] = [168, 168, 168] const faceColorGray: [number, number, number] = [168, 168, 168]
const faceColorYellow: [number, number, number] = [155, 155, 155] const faceColorYellow: [number, number, number] = [155, 155, 155]
const tolerance = 40 const tolerance = 40
@ -3824,7 +3824,7 @@ extrude001 = extrude(profile001, length = 100)
}) })
await cmdBar.progressCmdBar() await cmdBar.progressCmdBar()
await toolbar.closePane('feature-tree') await toolbar.closePane('feature-tree')
await scene.expectPixelColor(shapeColor, testPoint, 10) await scene.expectPixelColor(shapeColor, testPoint, 30)
await toolbar.openPane('code') await toolbar.openPane('code')
if (hex === 'default') { if (hex === 'default') {
const anyAppearanceDeclaration = `|> appearance(` const anyAppearanceDeclaration = `|> appearance(`

View File

@ -91,8 +91,8 @@ test.describe('Testing in-app sample loading', () => {
// Locators and constants // Locators and constants
const sampleOne = { const sampleOne = {
file: 'a-parametric-bearing-pillow-block' + FILE_EXT, file: 'parametric-bearing-pillow-block' + FILE_EXT,
title: 'A Parametric Bearing Pillow Block', title: 'Parametric Bearing Pillow Block',
} }
const sampleTwo = { const sampleTwo = {
file: 'gear-rack' + FILE_EXT, file: 'gear-rack' + FILE_EXT,

View File

@ -662,8 +662,8 @@ part001 = startSketchOn(XZ)
for (const rgb of RGBs) { for (const rgb of RGBs) {
const [r, g, b] = rgb const [r, g, b] = rgb
const RGAverage = (r + g) / 2 const RGAverage = (r + g) / 2
const isRedGreenSameIsh = Math.abs(r - g) < 3 const isRedGreenSameIsh = Math.abs(r - g) < 10
const isBlueLessThanRG = RGAverage - b > 45 const isBlueLessThanRG = RGAverage - b > 40
const isYellowy = isRedGreenSameIsh && isBlueLessThanRG const isYellowy = isRedGreenSameIsh && isBlueLessThanRG
if (isYellowy) return true if (isYellowy) return true
} }