Remove skips to align with new way of opting-in tests (#6560)
This commit is contained in:
@ -102,8 +102,6 @@ test.describe('when using the file tree to', () => {
|
|||||||
`rename ${fromFile} to ${toFile}, and doesn't crash on reload and settings load`,
|
`rename ${fromFile} to ${toFile}, and doesn't crash on reload and settings load`,
|
||||||
{ tag: '@electron' },
|
{ tag: '@electron' },
|
||||||
async ({ page }, testInfo) => {
|
async ({ page }, testInfo) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
const { panesOpen, pasteCodeInEditor, renameFile, editorTextMatches } =
|
const { panesOpen, pasteCodeInEditor, renameFile, editorTextMatches } =
|
||||||
await getUtils(page, test)
|
await getUtils(page, test)
|
||||||
|
|
||||||
@ -146,8 +144,6 @@ test.describe('when using the file tree to', () => {
|
|||||||
`create many new files of the same name, incrementing their names`,
|
`create many new files of the same name, incrementing their names`,
|
||||||
{ tag: '@electron' },
|
{ tag: '@electron' },
|
||||||
async ({ page }, testInfo) => {
|
async ({ page }, testInfo) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
const { panesOpen, createNewFile } = await getUtils(page, test)
|
const { panesOpen, createNewFile } = await getUtils(page, test)
|
||||||
|
|
||||||
await page.setBodyDimensions({ width: 1200, height: 500 })
|
await page.setBodyDimensions({ width: 1200, height: 500 })
|
||||||
@ -1031,8 +1027,6 @@ test.describe('Undo and redo do not keep history when navigating between files',
|
|||||||
`open a file, change something, open a different file, hitting undo should do nothing`,
|
`open a file, change something, open a different file, hitting undo should do nothing`,
|
||||||
{ tag: '@electron' },
|
{ tag: '@electron' },
|
||||||
async ({ context, page }, testInfo) => {
|
async ({ context, page }, testInfo) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
await context.folderSetupFn(async (dir) => {
|
await context.folderSetupFn(async (dir) => {
|
||||||
const testDir = join(dir, 'testProject')
|
const testDir = join(dir, 'testProject')
|
||||||
await fsp.mkdir(testDir, { recursive: true })
|
await fsp.mkdir(testDir, { recursive: true })
|
||||||
@ -1099,10 +1093,7 @@ test.describe('Undo and redo do not keep history when navigating between files',
|
|||||||
test(
|
test(
|
||||||
`open a file, change something, undo it, open a different file, hitting redo should do nothing`,
|
`open a file, change something, undo it, open a different file, hitting redo should do nothing`,
|
||||||
{ tag: '@electron' },
|
{ tag: '@electron' },
|
||||||
// Skip on windows i think the keybindings are different for redo.
|
|
||||||
async ({ context, page }, testInfo) => {
|
async ({ context, page }, testInfo) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
await context.folderSetupFn(async (dir) => {
|
await context.folderSetupFn(async (dir) => {
|
||||||
const testDir = join(dir, 'testProject')
|
const testDir = join(dir, 'testProject')
|
||||||
await fsp.mkdir(testDir, { recursive: true })
|
await fsp.mkdir(testDir, { recursive: true })
|
||||||
|
@ -62,7 +62,7 @@ function tomlStringOverWriteNamedViewUuids(toml: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test.describe('Named view tests', () => {
|
test.describe('Named view tests', () => {
|
||||||
test.skip(runningOnWindows(), 'Windows line endings break snapshot matching')
|
test.fail(runningOnWindows(), 'Windows line endings break snapshot matching')
|
||||||
test('Verify project.toml is not created', async ({ page }, testInfo) => {
|
test('Verify project.toml is not created', async ({ page }, testInfo) => {
|
||||||
// Create project and load it
|
// Create project and load it
|
||||||
const projectName = 'named-views'
|
const projectName = 'named-views'
|
||||||
|
@ -223,21 +223,6 @@ extrude001 = extrude(sketch001, length = 50)
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Not relevant to us anymore, or at least for the time being.
|
|
||||||
test.skip('ensure the Zoo logo is not a link in browser app', async ({
|
|
||||||
page,
|
|
||||||
homePage,
|
|
||||||
}) => {
|
|
||||||
const u = await getUtils(page)
|
|
||||||
await page.setBodyDimensions({ width: 1000, height: 500 })
|
|
||||||
await homePage.goToModelingScene()
|
|
||||||
await u.waitForPageLoad()
|
|
||||||
|
|
||||||
const zooLogo = page.locator('[data-testid="app-logo"]')
|
|
||||||
// Make sure it's not a link
|
|
||||||
await expect(zooLogo).not.toHaveAttribute('href')
|
|
||||||
})
|
|
||||||
|
|
||||||
test('Position _ Is Out Of Range... regression test', async ({
|
test('Position _ Is Out Of Range... regression test', async ({
|
||||||
context,
|
context,
|
||||||
page,
|
page,
|
||||||
|
@ -19,12 +19,9 @@ test.describe('Testing loading external models', () => {
|
|||||||
* its title, and its units settings. https://github.com/KittyCAD/kcl-samples/blob/main/parametric-bearing-pillow-block/main.kcl
|
* its title, and its units settings. https://github.com/KittyCAD/kcl-samples/blob/main/parametric-bearing-pillow-block/main.kcl
|
||||||
*/
|
*/
|
||||||
// We have no more web tests
|
// We have no more web tests
|
||||||
test.skip('Web: should overwrite current code, cannot create new file', async ({
|
test.fail(
|
||||||
editor,
|
'Web: should overwrite current code, cannot create new file',
|
||||||
context,
|
async ({ editor, context, page, homePage }) => {
|
||||||
page,
|
|
||||||
homePage,
|
|
||||||
}) => {
|
|
||||||
const u = await getUtils(page)
|
const u = await getUtils(page)
|
||||||
|
|
||||||
await test.step(`Test setup`, async () => {
|
await test.step(`Test setup`, async () => {
|
||||||
@ -76,7 +73,8 @@ test.describe('Testing loading external models', () => {
|
|||||||
|
|
||||||
await editor.expectEditor.toContain('// ' + newSample.title)
|
await editor.expectEditor.toContain('// ' + newSample.title)
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Note this test implicitly depends on the KCL samples:
|
* Note this test implicitly depends on the KCL samples:
|
||||||
|
@ -158,8 +158,6 @@ test.describe(
|
|||||||
page,
|
page,
|
||||||
homePage,
|
homePage,
|
||||||
}) => {
|
}) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
const u = await getUtils(page)
|
const u = await getUtils(page)
|
||||||
await page.setBodyDimensions({ width: 1200, height: 500 })
|
await page.setBodyDimensions({ width: 1200, height: 500 })
|
||||||
await homePage.goToModelingScene()
|
await homePage.goToModelingScene()
|
||||||
@ -531,8 +529,6 @@ test.describe(
|
|||||||
`Closing settings modal should go back to the original file being viewed`,
|
`Closing settings modal should go back to the original file being viewed`,
|
||||||
{ tag: '@electron' },
|
{ tag: '@electron' },
|
||||||
async ({ context, page }, testInfo) => {
|
async ({ context, page }, testInfo) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
await context.folderSetupFn(async (dir) => {
|
await context.folderSetupFn(async (dir) => {
|
||||||
const bracketDir = join(dir, 'project-000')
|
const bracketDir = join(dir, 'project-000')
|
||||||
await fsp.mkdir(bracketDir, { recursive: true })
|
await fsp.mkdir(bracketDir, { recursive: true })
|
||||||
@ -598,8 +594,6 @@ test.describe(
|
|||||||
|
|
||||||
test('Changing modeling default unit', async ({ page, homePage }) => {
|
test('Changing modeling default unit', async ({ page, homePage }) => {
|
||||||
await test.step(`Test setup`, async () => {
|
await test.step(`Test setup`, async () => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
await page.setBodyDimensions({ width: 1200, height: 500 })
|
await page.setBodyDimensions({ width: 1200, height: 500 })
|
||||||
await homePage.goToModelingScene()
|
await homePage.goToModelingScene()
|
||||||
const toastMessage = page.getByText(
|
const toastMessage = page.getByText(
|
||||||
@ -760,8 +754,6 @@ test.describe(
|
|||||||
scene,
|
scene,
|
||||||
cmdBar,
|
cmdBar,
|
||||||
}) => {
|
}) => {
|
||||||
// TODO: fix this test on windows after the electron migration
|
|
||||||
test.skip(process.platform === 'win32', 'Skip on windows')
|
|
||||||
const u = await getUtils(page)
|
const u = await getUtils(page)
|
||||||
await context.addInitScript(() => {
|
await context.addInitScript(() => {
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
|
@ -256,19 +256,6 @@ test('Basic default modeling and sketch hotkeys work', async ({
|
|||||||
homePage,
|
homePage,
|
||||||
}) => {
|
}) => {
|
||||||
const u = await getUtils(page)
|
const u = await getUtils(page)
|
||||||
|
|
||||||
// This test can run long if it takes a little too long to load
|
|
||||||
// the engine.
|
|
||||||
test.setTimeout(90000)
|
|
||||||
// This test has a weird bug on ubuntu
|
|
||||||
// Funny, it's flaking on Windows too :). I think there is just something
|
|
||||||
// actually wrong.
|
|
||||||
test.skip(
|
|
||||||
process.platform === 'linux',
|
|
||||||
'weird playwright bug on ubuntu https://github.com/KittyCAD/modeling-app/issues/2444'
|
|
||||||
)
|
|
||||||
// Load the app with the code pane open
|
|
||||||
|
|
||||||
await test.step(`Set up test`, async () => {
|
await test.step(`Set up test`, async () => {
|
||||||
await page.addInitScript(async () => {
|
await page.addInitScript(async () => {
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
|
Reference in New Issue
Block a user