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]: UI test runner - multiple api calls are added to the network tab after the test execution by using a new request context on test.beforeAll #34404

Open
dbarrientostk opened this issue Jan 20, 2025 · 0 comments
Assignees
Labels

Comments

@dbarrientostk
Copy link

Version

1.49.1

Steps to reproduce

  1. clone this repo: https://github.com/dbarrientostk/api-issue
  2. npm install
  3. npx playwright test --ui
  4. Run the test
  5. You should see the duplicate calls on the network tab.
    Image
Screen.Recording.2025-01-20.at.3.25.39.PM.mov

Expected behavior

I expect so see only one api call to the specific endpoint.

Actual behavior

Duplicate api calls appear after the test ran.

Additional context

No response

Environment

System:
    OS: macOS 15.0
    CPU: (10) arm64 Apple M1 Max
    Memory: 2.18 GB / 32.00 GB
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.49.1 => 1.49.1
@dbarrientostk dbarrientostk changed the title [Bug]: UI test runner - multiple api calls are added to the network tab after test execution by using a new request context while user test.beforeAll [Bug]: UI test runner - multiple api calls are added to the network tab after the test execution by using a new request on test.beforeAll Jan 20, 2025
@dbarrientostk dbarrientostk changed the title [Bug]: UI test runner - multiple api calls are added to the network tab after the test execution by using a new request on test.beforeAll [Bug]: UI test runner - multiple api calls are added to the network tab after the test execution by using a new request context on test.beforeAll Jan 20, 2025
@pavelfeldman pavelfeldman added v1.51 and removed v1.50 labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants