cancel
Showing results for 
Search instead for 
Did you mean: 

Error cypress and paypal sdk “react-paypal-js”

Options
akheersoum090
Contributor
Posted on

 have at error with cypress and paypal sdk "react-paypal-js" when I'm doing click in the paypal button I have the next site error

"TypeError: o.removeEventListener is not a function" "Uncaught TypeError: Cannot read property 'stack' of null"

 

Z4uAe.png

import i18n from '@/lib/i18n';
import users from '@/cypress/fixtures/common/users';
describe('<InvoiceList />', () => {
  before(() => {
    cy.task('db:seed:invoices');
  });
  after(() => {
    cy.task('db:clean', { db: 'elinvo' });
  });
  it('<InvoiceList /> - Validate app list', () => {
    cy.login({ email: users[1].email, password: 'usertimg' });
    cy.visit('/invoices');
    cy.wait(5000);
    cy.get('[data-cy=invoice-btn-paypal]').click();
  });
});

 

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.