Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Playwright 1.45.0 raises an error ENOENT: no such file or directory, open '/path/to/test-results/.playwright-artifacts-0/hash.zip' with Electron #31473

Closed
mtsmfm opened this issue Jun 28, 2024 · 0 comments · Fixed by #31437
Labels

Comments

@mtsmfm
Copy link
Contributor

mtsmfm commented Jun 28, 2024

Version

1.45.0

Steps to reproduce

  1. Clone my repo https://github.com/mtsmfm/electron-playwright-with-trace-issue
  2. cd pw-145
  3. npm install
  4. npx playwright test test.spec.ts --trace on

Expected behavior

Running 1 test using 1 worker

  ✓  1 test.spec.ts:15:1 › should work (651ms)

  1 passed (1.4s)

Actual behavior

Running 1 test using 1 worker

  ✘  1 test.spec.ts:15:1 › should work (415ms)


  1) test.spec.ts:15:1 › should work ───────────────────────────────────────────────────────────────

    Error: ENOENT: no such file or directory, open '/home/mtsmfm/ghq/github.com/mtsmfm/electron-playwright-example/pw-145/test-results/.playwright-artifacts-0/7e647ec48523e8dd0434626c5a1420a7.zip'

  1 failed
    test.spec.ts:15:1 › should work ────────────────────────────────────────────────────────────────

Additional context

Perhaps the error is thrown by await app.close(); as I don't see any error if I remove the line.

Environment

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 11.28 GB / 15.54 GB
    Container: Yes
  Binaries:
    Node: 20.13.1 - ~/.local/share/mise/installs/node/20/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 10.8.0 - ~/.local/share/mise/installs/node/20/bin/npm
  IDEs:
    VSCode: 1.90.2 - /home/mtsmfm/.vscode-server/bin/5437499feb04f7a586f677b155b039bc2b3669eb/bin/remote-cli/code
  Languages:
    Bash: 5.0.17 - /usr/bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants