diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index f5c105a..ef922a4 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -63,14 +63,12 @@ jobs: with: start: npm run serve:app-router wait-on: 'http://localhost:3000' - record: true env: DEBUG: 'cypress:server:browsers:electron' CI: true NEXT_PUBLIC_PUBLIC_KEY: ${{ secrets.IK_PUBLIC_KEY }} PRIVATE_KEY: ${{ secrets.IK_PRIVATE_KEY }} NEXT_PUBLIC_URL_ENDPOINT: ${{ secrets.IK_URL_ENDPOINT }} - CYPRESS_RECORD_KEY: c008f3e4-aff9-4acb-8e41-01b0bad9510a - name: tar workspace if: always() diff --git a/cypress.config.ts b/cypress.config.ts index cd28b37..66db026 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -4,7 +4,6 @@ export default defineConfig({ fixturesFolder: 'cypress/fixtures', screenshotsFolder: 'screenshots', videosFolder: 'videos', - projectId: "nfkjt7", env: { APP_HOST: 'http://localhost:3000/', }, diff --git a/src/components/IKImage/index.tsx b/src/components/IKImage/index.tsx index 6ca5fb4..ea31753 100755 --- a/src/components/IKImage/index.tsx +++ b/src/components/IKImage/index.tsx @@ -137,13 +137,10 @@ const IKImage = (props: Omit & IKImage useEffect(() => { // if height and width are there in transformation skip props height and width and add fill =true - if(props.loading==='lazy') - console.log({restProps}) const updatedRestProps = restProps; if ( transformation?.length && transformation.some((obj) => obj.hasOwnProperty('height') || obj.hasOwnProperty('width')) - // (hasProperty(transformation, "height") || hasProperty(transformation, "width")) ) { if (updatedRestProps.height) delete updatedRestProps["height"]; if (updatedRestProps.width) delete updatedRestProps["width"]; @@ -152,10 +149,6 @@ const IKImage = (props: Omit & IKImage setImageProps(updatedRestProps); }, []); - useEffect(() => { - if (props.loading === "lazy") console.log({ currentUrl, loading: props.loading,imageProps }); - }, [currentUrl, props.loading,imageProps]); - return currentUrl != undefined && Object.keys(imageProps).length ? ( src} @@ -164,7 +157,6 @@ const IKImage = (props: Omit & IKImage ref={imageRef} unoptimized loading="eager" - // fill={transformation?.length && (hasProperty(transformation, "height") || hasProperty(transformation, "width")) ? true : false} {...imageProps} /> ) : (