Merge branch 'move-tests-to-electon' into pierremtb/electron-tests-one-last-try-16-core-win
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/e2e-tests.yml
									
									
									
									
										vendored
									
									
								
							@ -39,7 +39,7 @@ jobs:
 | 
			
		||||
    strategy:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        # os: [namespace-profile-ubuntu-8-cores, namespace-profile-macos-8-cores, windows-latest-8-cores]
 | 
			
		||||
        # os: [namespace-profile-ubuntu-8-cores, namespace-profile-macos-8-cores, self-hosted-windows-8-cores]
 | 
			
		||||
        os: [windows-16-cores]
 | 
			
		||||
        shardIndex: [1, 2, 3, 4]
 | 
			
		||||
        shardTotal: [4]
 | 
			
		||||
 | 
			
		||||
@ -92,6 +92,8 @@ test.describe('when using the file tree to', () => {
 | 
			
		||||
    `rename ${fromFile} to ${toFile}, and doesn't crash on reload and settings load`,
 | 
			
		||||
    { tag: '@electron' },
 | 
			
		||||
    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 } =
 | 
			
		||||
        await getUtils(page, test)
 | 
			
		||||
 | 
			
		||||
@ -134,6 +136,8 @@ test.describe('when using the file tree to', () => {
 | 
			
		||||
    `create many new files of the same name, incrementing their names`,
 | 
			
		||||
    { tag: '@electron' },
 | 
			
		||||
    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)
 | 
			
		||||
 | 
			
		||||
      await page.setBodyDimensions({ width: 1200, height: 500 })
 | 
			
		||||
@ -1014,6 +1018,8 @@ 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`,
 | 
			
		||||
    { tag: '@electron' },
 | 
			
		||||
    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) => {
 | 
			
		||||
        const testDir = join(dir, 'testProject')
 | 
			
		||||
        await fsp.mkdir(testDir, { recursive: true })
 | 
			
		||||
@ -1082,6 +1088,8 @@ test.describe('Undo and redo do not keep history when navigating between files',
 | 
			
		||||
    { tag: '@electron' },
 | 
			
		||||
    // Skip on windows i think the keybindings are different for redo.
 | 
			
		||||
    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) => {
 | 
			
		||||
        const testDir = join(dir, 'testProject')
 | 
			
		||||
        await fsp.mkdir(testDir, { recursive: true })
 | 
			
		||||
 | 
			
		||||
@ -16,6 +16,8 @@ test('verify extruding circle works', async ({
 | 
			
		||||
  toolbar,
 | 
			
		||||
  scene,
 | 
			
		||||
}) => {
 | 
			
		||||
  // TODO: fix this test on windows after the electron migration
 | 
			
		||||
  test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
  const file = await fs.readFile(
 | 
			
		||||
    path.resolve(
 | 
			
		||||
      __dirname,
 | 
			
		||||
@ -95,6 +97,8 @@ test('verify extruding circle works', async ({
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
test.describe('verify sketch on chamfer works', () => {
 | 
			
		||||
  // TODO: fix this test on windows after the electron migration
 | 
			
		||||
  test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
  const _sketchOnAChamfer =
 | 
			
		||||
    (
 | 
			
		||||
      page: Page,
 | 
			
		||||
@ -864,6 +868,8 @@ shellPointAndClickCapCases.forEach(({ shouldPreselect }) => {
 | 
			
		||||
    toolbar,
 | 
			
		||||
    cmdBar,
 | 
			
		||||
  }) => {
 | 
			
		||||
    // TODO: fix this test on windows after the electron migration
 | 
			
		||||
    test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
    const initialCode = `sketch001 = startSketchOn('XZ')
 | 
			
		||||
    |> circle({ center = [0, 0], radius = 30 }, %)
 | 
			
		||||
    extrude001 = extrude(30, sketch001)
 | 
			
		||||
 | 
			
		||||
@ -953,6 +953,8 @@ test.describe('Sketch tests', () => {
 | 
			
		||||
    page,
 | 
			
		||||
    homePage,
 | 
			
		||||
  }) => {
 | 
			
		||||
    // TODO: fix this test on windows after the electron migration
 | 
			
		||||
    test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
    /**
 | 
			
		||||
     * Tests the following things
 | 
			
		||||
     * 1) The the planes are there on load because the scene is empty
 | 
			
		||||
 | 
			
		||||
@ -340,6 +340,8 @@ test.describe('Testing Camera Movement', () => {
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  test(`Zoom by scroll should not fire while orbiting`, async ({ homePage, page }) => {
 | 
			
		||||
    // TODO: fix this test on windows after the electron migration
 | 
			
		||||
    test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
    /**
 | 
			
		||||
     * Currently we only allow zooming by scroll when no other camera movement is happening,
 | 
			
		||||
     * set within cameraMouseDragGuards in cameraControls.ts,
 | 
			
		||||
 | 
			
		||||
@ -492,6 +492,8 @@ test.describe('Testing selections', () => {
 | 
			
		||||
    page,
 | 
			
		||||
    homePage,
 | 
			
		||||
  }) => {
 | 
			
		||||
    // TODO: fix this test on windows after the electron migration
 | 
			
		||||
    test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
    const u = await getUtils(page)
 | 
			
		||||
    await page.addInitScript(async (KCL_DEFAULT_LENGTH) => {
 | 
			
		||||
      localStorage.setItem(
 | 
			
		||||
 | 
			
		||||
@ -134,6 +134,8 @@ test.describe('Testing settings', () => {
 | 
			
		||||
    page,
 | 
			
		||||
    homePage,
 | 
			
		||||
  }) => {
 | 
			
		||||
    // TODO: fix this test on windows after the electron migration
 | 
			
		||||
    test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
    const u = await getUtils(page)
 | 
			
		||||
    await page.setBodyDimensions({ width: 1200, height: 500 })
 | 
			
		||||
    await homePage.goToModelingScene()
 | 
			
		||||
@ -492,6 +494,8 @@ test.describe('Testing settings', () => {
 | 
			
		||||
    `Closing settings modal should go back to the original file being viewed`,
 | 
			
		||||
    { tag: '@electron' },
 | 
			
		||||
    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) => {
 | 
			
		||||
        const bracketDir = join(dir, 'project-000')
 | 
			
		||||
        await fsp.mkdir(bracketDir, { recursive: true })
 | 
			
		||||
@ -554,6 +558,8 @@ test.describe('Testing settings', () => {
 | 
			
		||||
 | 
			
		||||
  test('Changing modeling default unit', async ({ page, homePage }) => {
 | 
			
		||||
    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 homePage.goToModelingScene()
 | 
			
		||||
      const toastMessage = page.getByText(`Successfully created "testDefault"`)
 | 
			
		||||
@ -700,6 +706,8 @@ test.describe('Testing settings', () => {
 | 
			
		||||
  })
 | 
			
		||||
 | 
			
		||||
  test('Changing theme in sketch mode', async ({ context, page, homePage }) => {
 | 
			
		||||
    // TODO: fix this test on windows after the electron migration
 | 
			
		||||
    test.skip(process.platform === 'win32', 'Skip on windows')
 | 
			
		||||
    const u = await getUtils(page)
 | 
			
		||||
    await context.addInitScript(() => {
 | 
			
		||||
      localStorage.setItem(
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user