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]: test.step() fails in worker fixture teardown #33750

Open
vitalets opened this issue Nov 24, 2024 · 0 comments
Open

[Bug]: test.step() fails in worker fixture teardown #33750

vitalets opened this issue Nov 24, 2024 · 0 comments

Comments

@vitalets
Copy link
Contributor

vitalets commented Nov 24, 2024

Version

1.49

Steps to reproduce

If test.step() is called in worker fixture setup - everything works fine.
If test.step() is called in worker fixture teardown - there is an error test.step() can only be called from a test.

To reproduce:
Please follow instructions in README: https://github.com/vitalets/playwright-issues/tree/test-step-worker-teardown

Expected behavior

Calling test.step() is either allowed in any phase of worker fixture OR is not allowed in worker fixtures.

Actual behavior

Calling test.step() is allowed in setup phase of worker fixture, but fails in teardown phase of worker fixture.

Additional context

No response

Environment

System:
    OS: macOS 13.6.9
    CPU: (8) arm64 Apple M1
    Memory: 58.34 MB / 16.00 GB
  Binaries:
    Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
    Yarn: 1.22.21 - ~/.nvm/versions/node/v20.14.0/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
    pnpm: 7.27.1 - ~/Library/pnpm/pnpm
  IDEs:
    VSCode: 1.95.3 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: 1.49.0 => 1.49.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant