Refactor logic to skip unreliable tests (#5919)

This commit is contained in:
Jace Browning
2025-03-20 23:52:30 -04:00
committed by GitHub
parent 89d1f7f3d3
commit 06b35b76ff
23 changed files with 106 additions and 56 deletions

View File

@ -1,6 +1,12 @@
import { test, expect } from './zoo-test'
import { secrets } from './secrets'
import { Paths, doExport, getUtils, settingsToToml } from './test-utils'
import {
Paths,
doExport,
getUtils,
settingsToToml,
orRunWhenFullSuiteEnabled,
} from './test-utils'
import { Models } from '@kittycad/lib'
import fsp from 'fs/promises'
import { spawn } from 'child_process'
@ -40,7 +46,7 @@ test(
'exports of each format should work',
{ tag: ['@snapshot', '@skipWin', '@skipMacos'] },
async ({ page, context, scene, cmdBar, tronApp }) => {
test.fixme(process.env.GITHUB_HEAD_REF !== 'all-e2e')
test.fixme(orRunWhenFullSuiteEnabled())
if (!tronApp) {
fail()
}
@ -1093,7 +1099,7 @@ test.describe('Grid visibility', { tag: '@snapshot' }, () => {
})
test('theme persists', async ({ page, context }) => {
test.fixme(process.env.GITHUB_HEAD_REF !== 'all-e2e')
test.fixme(orRunWhenFullSuiteEnabled())
const u = await getUtils(page)
await context.addInitScript(async () => {
localStorage.setItem(