feat(YfmHtml): add a hook for opening files gallery
The hook for opening the files gallery from the yfm
Preview is ready.
Visual Tests Report is ready.
- return uikit peerDeps version plz
- rebase main plz and check screenshots tests
I can't update the tests in the docker because of an error. Am I the only one with this problem?
➜ markdown-editor git:(files-gallery) ✗ npm run playwright:docker:update -g "should paste to code block without as is"
> @gravity-ui/[email protected] playwright:docker:update
> ./scripts/playwright-docker.sh 'npm run playwright:update' should paste to code block without as is
Trying to pull mcr.microsoft.com/playwright:v1.49.0-jammy...
Getting image source signatures
Copying blob sha256:9bc44a9ea3ce897b534d6312190ae77fcef2246b6a12f63ac48975e6a02c9988
Copying blob sha256:4be1db8bbbebdd00e047c599d9aa2ee2ac533600bee2ac25a86573e42598d326
Copying blob sha256:a6ef13bd9cd56b30eb38988a642c09827d1f718e58abde1f8dc71f2f996db43b
Copying blob sha256:c16b1d11d19da039a2d829473890fe3841ab80e7862df18db8589ba18f021ae1
Copying config sha256:fc9eb578b6c23b896ebf37e167bfec339dc5ae61bea1a1aee6c56591406eb64c
Writing manifest to image destination
> @gravity-ui/[email protected] playwright:update
> npm run playwright -- -u should paste to code block without as is
> @gravity-ui/[email protected] playwright
> playwright test --config=tests/playwright/playwright.config.ts -u should paste to code block without as is
Running 102 tests using 2 workers
vite v5.4.15 building for production...
(!) outDir /work/tests/playwright/.cache-docker is not inside project root and will not be emptied.
Use --emptyOutDir to override.
[plugin:vite:resolve] [plugin vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/work/node_modules/css/lib/stringify/source-map-support.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] [plugin vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/work/node_modules/css/lib/stringify/source-map-support.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] [plugin vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/work/node_modules/css/node_modules/source-map-resolve/index.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] [plugin vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/work/node_modules/@diplodoc/transform/lib/utilsFS.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] [plugin vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/work/node_modules/@diplodoc/transform/lib/utilsFS.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
node_modules/@storybook/core/dist/channels/index.js (1171:15): Use of eval in "node_modules/@storybook/core/dist/channels/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@storybook/core/dist/channels/index.js (1173:16): Use of eval in "node_modules/@storybook/core/dist/channels/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/folding-headings-extension/build/plugin/index.js (149:9): Use of eval in "node_modules/@diplodoc/folding-headings-extension/build/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/latex-extension/plugin/index.js (47:9): Use of eval in "node_modules/@diplodoc/latex-extension/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/mermaid-extension/plugin/index.js (47:9): Use of eval in "node_modules/@diplodoc/mermaid-extension/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/html-extension/build/plugin/index.js (39:9): Use of eval in "node_modules/@diplodoc/html-extension/build/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/cut-extension/build/plugin/index.js (171:9): Use of eval in "node_modules/@diplodoc/cut-extension/build/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/tabs-extension/build/plugin/index.js (193:9): Use of eval in "node_modules/@diplodoc/tabs-extension/build/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
node_modules/@diplodoc/transform/node_modules/@diplodoc/cut-extension/build/plugin/index.js (171:9): Use of eval in "node_modules/@diplodoc/transform/node_modules/@diplodoc/cut-extension/build/plugin/index.js" is strongly discouraged as it poses security risks and may cause issues with minification.
✓ 4964 modules transformed.
Killed
npm notice
npm notice New major version of npm available! 10.9.0 -> 11.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.3.0
npm notice To update run: npm install -g [email protected]
npm notice
I can't update the tests in the docker because of an error. Am I the only one with this problem? ✓ 4964 modules transformed. Killed
Try running npm run playwright:docker:clear first — it might help resolve the issue.
If the error persists, try reducing the number of workers from 2 to 1 in the config file: https://github.com/gravity-ui/markdown-editor/blob/d4447b1153b4a6adcf894fbbde804cc9f7c6e599/tests/playwright/playwright.config.ts#L59
Also, consider increasing the memory limit here: https://github.com/gravity-ui/markdown-editor/blob/cdadad46b9f98a9e5d078ce8e1266ae906dd4ea6/scripts/playwright-docker.sh#L19
Let me know if it helps!