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

Is playwright supported? Tests fail but show as passed #16

Open
i-love-code opened this issue Dec 13, 2023 · 3 comments
Open

Is playwright supported? Tests fail but show as passed #16

i-love-code opened this issue Dec 13, 2023 · 3 comments

Comments

@i-love-code
Copy link

The sdk branch appears to use framework: playwright, and this is GitHub repository is linked to in the setup documentation for Playwright and BrowserStack.

In the sdk branch, when you set retries: 3 in the playwright configuration file for re-running test failures and then run npm run sample-test command, (with your own user/access key) it marks the tests in BrowserStack as passed, but throws these errors in the console and the SDK marks the tests as failed, leading to it retrying over and over.

Running 4 tests using 2 workers

1) [playwright-firefox@latest:Windows 11@browserstack] › tests\bstack_test_add_to_cart.js:3:1 › BStackDemo test add to cart

    Error: : expected object, got undefined

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
    Error: : expected object, got undefined

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
    Error: : expected object, got undefined

    Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
    Error: : expected object, got undefined

But in BrowserStack, it shows as passed sessions:
image

@i-love-code i-love-code changed the title Is playwright supported? Is playwright supported? Tests fail but show as passed Dec 13, 2023
@i-love-code
Copy link
Author

It would appear that the browserstack-node-sdk that is wrapping the npx playwright test command does not correctly infer the outcome of the test, and marks all tests as having failed.

@i-love-code
Copy link
Author

i-love-code commented Dec 13, 2023

I have active BrowserStack support issues open for this, but I have not seen a helpful response/resolution. Trying all available paths for support.

@rohit-y180
Copy link

Hi @i-love-code , could you please let us know the support ticket ID that you have created on BrowserStack?

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

2 participants