From ade3a4fe2ffd36390c70bee35d5f6b6936e1623e Mon Sep 17 00:00:00 2001 From: BipanKishore Date: Sun, 12 May 2024 20:06:07 +0530 Subject: [PATCH] try windows --- .github/workflows/cypress.yml | 2 +- cypress/component-testing/resizable-api.cy.tsx | 2 +- src/context/resizable-panes-context.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 842c8c9..fcdf765 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -6,7 +6,7 @@ on: jobs: cypress-run: - runs-on: ubuntu-latest + runs-on: windows-latest # Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs # Also see warning here https://github.com/cypress-io/github-action#parallel diff --git a/cypress/component-testing/resizable-api.cy.tsx b/cypress/component-testing/resizable-api.cy.tsx index 2ce1dba..3524039 100644 --- a/cypress/component-testing/resizable-api.cy.tsx +++ b/cypress/component-testing/resizable-api.cy.tsx @@ -807,7 +807,7 @@ describe('Should make partial hidden visible with setSize', () => { }) // Edge - it(` + it.only(` -- Partially hide P2 moving R2 to R1 -- setSize P2 with 150 and BUTTOM_FIRST -- should emit onResizeStop haveing P2 = 150 diff --git a/src/context/resizable-panes-context.ts b/src/context/resizable-panes-context.ts index 1da7530..320be47 100644 --- a/src/context/resizable-panes-context.ts +++ b/src/context/resizable-panes-context.ts @@ -46,6 +46,7 @@ import { synSizeToMaxSize, synSizeToMinSize } from '../models/pane' import {attachDetectionCoordinate, detectionService} from '../services/detection-service' +import {consoleGetSize} from '../utils/development-util' export const getResizableContext = ( props: IResizablePaneProviderProps @@ -241,7 +242,7 @@ export const getResizableContext = ( afterResizeStop() setMouseDownFlag(false) - // consoleGetSize(resizable.panesList) + consoleGetSize(resizable.panesList) } resizable.onMouseUp = onMoveEndFn