Skip to content

Instantly share code, notes, and snippets.

@stoefln
Created March 30, 2022 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoefln/350c23954f6004abefb91df991d85c6c to your computer and use it in GitHub Desktop.
Save stoefln/350c23954f6004abefb91df991d85c6c to your computer and use it in GitHub Desktop.
npm run test:build
> Repeato@1.0.0-beta.26 test:build /Users/steph/Workspace/repeato-studio
> cross-env NODE_ENV=development cross-env TEST_BUILD=true npx playwright test --config=app/test/config/default.config.js
Using config at /Users/steph/Workspace/repeato-studio/app/test/config/default.config.js
Using UI Store at app/test/temp/emptyWorkspace/ui-database.rpt
DeletingDir app/test/temp/emptyWorkspace
Using UI Store at app/test/temp/emptyWorkspace/ui-database.rpt
Running 11 tests using 1 worker
Parsing Electron app in /Users/steph/Workspace/repeato-studio/dist/mac-arm64
Found Windows => 1 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 2 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 2 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/loading.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/loading.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/main.html
Returning Desired Page => Repeato
✓ App.test.js:18:1 › Verify worker window (10ms)
{
isVisible: false,
id: 1,
title: 'Worker thread',
isDevToolsOpened: false,
isCrashed: false
}
✓ App.test.js:27:1 › Verify loading window (2s)
{
isVisible: false,
id: 2,
title: 'Repeato loading...',
isDevToolsOpened: false,
isCrashed: false
}
✓ App.test.js:36:1 › Verify main window (3ms)
{
isVisible: true,
id: 3,
title: 'Repeato',
isDevToolsOpened: false,
isCrashed: false
}
DeletingDir app/test/temp/emptyWorkspace
Using UI Store at app/test/temp/emptyWorkspace/ui-database.rpt
Parsing Electron app in /Users/steph/Workspace/repeato-studio/dist/mac-arm64
Found Windows => 1 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 1 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 2 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 2 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/loading.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/loading.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/main.html#/
Returning Desired Page => Repeato
✓ Test.test.js:33:3 › Test related tests › Create a new test and save it (10s)
DeletingDir app/test/temp/basicWorkspace
Using UI Store at app/test/temp/basicWorkspace/ui-database.rpt
TryingToLoadWorkSpace app/test/temp/basicWorkspace
✘ Test.test.js:66:3 › Test related tests › Duplicate test (0ms)
DeletingDir app/test/temp/basicWorkspace
Using UI Store at app/test/temp/basicWorkspace/ui-database.rpt
TryingToLoadWorkSpace app/test/temp/basicWorkspace
- Test.test.js:75:3 › Test related tests › Delete test
- Test.test.js:87:3 › Test related tests › Edit test and save it
- Test.test.js:108:3 › Test related tests › Rename test
- Test.test.js:120:3 › Test related tests › Export test run pdf
Using UI Store at app/test/temp/emptyWorkspace/ui-database.rpt
Parsing Electron app in /Users/steph/Workspace/repeato-studio/dist/mac-arm64
Found Windows => 1 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 1 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 2 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 2 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/loading.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/worker.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/loading.html
Found Windows => 3 || Curr Page => file:///Users/steph/Workspace/repeato-studio/dist/mac-arm64/Repeato.app/Contents/Resources/app/static/main.html#/
Returning Desired Page => Repeato
✘ Test.test.js:66:3 › Test related tests › Duplicate test (retry #1) (3s)
DeletingDir app/test/temp/basicWorkspace
Using UI Store at app/test/temp/basicWorkspace/ui-database.rpt
TryingToLoadWorkSpace app/test/temp/basicWorkspace
1) Test.test.js:66:3 › Test related tests › Duplicate test =======================================
Timeout of 100000ms exceeded in afterAll hook.
24 | })
25 |
> 26 | test.afterAll(async () => {
| ^
27 | rmDir(workSpaceDir)
28 | await context.tracing.stop({ path: 'app/test/test-output/tracing/tes-trace.zip' })
29 | await electronApp.close()
at /Users/steph/Workspace/repeato-studio/app/test/e2e/Test.test.js:26:8
Retry #1 ---------------------------------------------------------------------------------------
Error: expect(received).toEqual(expected) // deep equality
Expected: 2
Received: 1
70 | await page.click('#optionMenu >> text=Duplicate') // click the rename option
71 |
> 72 | expect(await page.locator(`.${basicTestTitle}`).count()).toEqual(2) // there must be 2 test with same class
| ^
73 | })
74 |
75 | test('Delete test', async () => {
at /Users/steph/Workspace/repeato-studio/app/test/e2e/Test.test.js:72:62
at /Users/steph/Workspace/repeato-studio/node_modules/@playwright/test/lib/workerRunner.js:529:7
at WorkerRunner._runFn (/Users/steph/Workspace/repeato-studio/node_modules/@playwright/test/lib/workerRunner.js:575:7)
at WorkerRunner._runTestWithBeforeHooks (/Users/steph/Workspace/repeato-studio/node_modules/@playwright/test/lib/workerRunner.js:523:20)
2) Test.test.js:75:3 › Test related tests › Delete test ==========================================
Timeout of 100000ms exceeded in afterAll hook.
24 | })
25 |
> 26 | test.afterAll(async () => {
| ^
27 | rmDir(workSpaceDir)
28 | await context.tracing.stop({ path: 'app/test/test-output/tracing/tes-trace.zip' })
29 | await electronApp.close()
at /Users/steph/Workspace/repeato-studio/app/test/e2e/Test.test.js:26:8
3) Test.test.js:87:3 › Test related tests › Edit test and save it ================================
Timeout of 100000ms exceeded in afterAll hook.
24 | })
25 |
> 26 | test.afterAll(async () => {
| ^
27 | rmDir(workSpaceDir)
28 | await context.tracing.stop({ path: 'app/test/test-output/tracing/tes-trace.zip' })
29 | await electronApp.close()
at /Users/steph/Workspace/repeato-studio/app/test/e2e/Test.test.js:26:8
4) Test.test.js:108:3 › Test related tests › Rename test =========================================
Timeout of 100000ms exceeded in afterAll hook.
24 | })
25 |
> 26 | test.afterAll(async () => {
| ^
27 | rmDir(workSpaceDir)
28 | await context.tracing.stop({ path: 'app/test/test-output/tracing/tes-trace.zip' })
29 | await electronApp.close()
at /Users/steph/Workspace/repeato-studio/app/test/e2e/Test.test.js:26:8
5) Test.test.js:120:3 › Test related tests › Export test run pdf =================================
Timeout of 100000ms exceeded in afterAll hook.
24 | })
25 |
> 26 | test.afterAll(async () => {
| ^
27 | rmDir(workSpaceDir)
28 | await context.tracing.stop({ path: 'app/test/test-output/tracing/tes-trace.zip' })
29 | await electronApp.close()
at /Users/steph/Workspace/repeato-studio/app/test/e2e/Test.test.js:26:8
1 failed
Test.test.js:66:3 › Test related tests › Duplicate test ========================================
6 skipped
4 passed (3m)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Repeato@1.0.0-beta.26 test:build: `cross-env NODE_ENV=development cross-env TEST_BUILD=true npx playwright test --config=app/test/config/default.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Repeato@1.0.0-beta.26 test:build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/steph/.npm/_logs/2022-03-30T09_25_18_030Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment