Skip to content

TestCafé hangs when PayPal button is pressed  #5962

@thomas-qa

Description

@thomas-qa

What is your Test Scenario?

On our web app, we want to select the PayPal payment method and click the PayPal button.
Performing the test manually, what happens is that when the PayPal button is pressed a new tab opens where to enter the PayPal data and proceed to payment.

What is the Current behavior?

  • The new tab is not opened
  • Testcafé hangs

What is the Expected behavior?

  • Open a new tab on paypal.com
  • Testcafé makes the test pass (or fail) and does not hang

What is your web application and your TestCafe test code?

You can find our public repo here:
https://github.com/musement/qa-test-cafe/tree/issue_paypal_payment
The issue is available in the issue_paypal_paymentbranch!

The test that generates this error is
https://github.com/musement/qa-test-cafe/blob/issue_paypal_payment/tests/paypal_issue/fixtures/pay_with_paypal.js

Your Environment details:

  • testcafe version: 1.11.0 (reproduced also on 1.10.0 and 1.9.0 and 1.8.3)
  • node.js version: 12.0.0
  • command-line arguments: --domain=paypal_issue --is-browser-stack=false --headless=false
  • browser name and version: Firefox 85.0 / Chrome 88.0.4324.150
  • platform and version: macOS 10.15.7
  • other: The project is a containerized version of TestCafé

To run the test outside the Docker container

Clone the repo and with a bash shell execute the following:

npm install
TEST_CAFE_BROWSERS_LIST=chrome,firefox
export TEST_CAFE_BROWSERS_LIST
TEST_CAFE_SPEED=1
export TEST_CAFE_SPEED
TEST_CAFE_REPORTER=list
export TEST_CAFE_REPORTER
TEST_CAFE_SKIPJSERRORS=true
export TEST_CAFE_SKIPJSERRORS
node index.js --domain=paypal_issue --is-browser-stack=false --headless=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    TYPE: bugThe described behavior is considered as wrong (bug).

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions