Feat(dx): Cypress to Playwright migration #4346
node.js.yml
on: pull_request
Create Package
2m 23s
Tests
2m 33s
Test coverage
3m 34s
Transformer Tests
1m 20s
Cypress
3m 11s
Performance
1m 21s
Annotations
6 errors and 7 warnings
Create Package
@tokens-studio/figma-plugin#build: command (/home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma) yarn run build exited (2)
|
Create Package
Process completed with exit code 2.
|
Tests
@tokens-studio/figma-plugin#test: command (/home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma) yarn run test exited (1)
|
Tests
Process completed with exit code 1.
|
Cypress
The process '/opt/hostedtoolcache/node/18.20.4/x64/bin/npm' failed with exit code 1
|
Test coverage
Error: Command failed: cd packages/tokens-studio-for-figma && npm run test:coverage:ci && cd ../.. && mv packages/tokens-studio-for-figma/coverage-summary.json coverage-summary.json
npm warn ignoring workspace config at /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma/.npmrc
npm warn ignoring workspace config at /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma/.npmrc
npm warn ignoring workspace config at /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma/.npmrc
● Test suite failed to run
Playwright Test needs to be invoked via 'npx playwright test' and excluded from Jest test runs.
Creating one directory for Playwright tests and one for Jest is the recommended way of doing it.
See https://playwright.dev/docs/intro for more information about Playwright Test.
3 | import startup from './support/commands';
4 |
> 5 | test.describe('has title', () => {
| ^
6 | const mockStartupParams = {
7 | activeTheme: {},
8 | lastOpened: Date.now(),
at throwIfRunningInsideJest (../../node_modules/playwright/lib/common/testType.js:259:11)
at TestTypeImpl._describe (../../node_modules/playwright/lib/common/testType.js:103:5)
at Function.describe (../../node_modules/playwright/lib/transform/transform.js:256:12)
at Object.<anonymous> (e2e/themes.spec.ts:5:6)
● Test suite failed to run
Playwright Test needs to be invoked via 'npx playwright test' and excluded from Jest test runs.
Creating one directory for Playwright tests and one for Jest is the recommended way of doing it.
See https://playwright.dev/docs/intro for more information about Playwright Test.
1 | import { test, expect } from '@playwright/test';
2 |
> 3 | test('has title', async ({ page }) => {
| ^
4 | await page.goto('http://localhost:58630/#theme=system&tab=start&action=STARTUP.default');
5 |
6 | // Expect a title "to contain" a substring.
at throwIfRunningInsideJest (../../node_modules/playwright/lib/common/testType.js:259:11)
at TestTypeImpl._createTest (../../node_modules/playwright/lib/common/testType.js:79:5)
at ../../node_modules/playwright/lib/transform/transform.js:256:12
at Object.<anonymous> (e2e/example.spec.ts:3:5)
npm error Lifecycle script `test` failed with error:
npm error Error: command failed
npm error in workspace: @tokens-studio/figma-plugin@2.0.1
npm error at location: /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma
npm error Lifecycle script `test:coverage` failed with error:
npm error Error: command failed
npm error in workspace: @tokens-studio/figma-plugin@2.0.1
npm error at location: /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma
npm error Lifecycle script `test:coverage:ci` failed with error:
npm error Error: command failed
npm error in workspace: @tokens-studio/figma-plugin@2.0.1
npm error at location: /home/runner/work/figma-plugin/figma-plugin/packages/tokens-studio-for-figma
|
Transformer Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Performance
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Create Package
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Cypress
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Test coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: anuraag016/Jest-Coverage-Diff@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, anuraag016/Jest-Coverage-Diff@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|