Skip to content

Commit ce4b4ed

Browse files
committed
Increase timeout to assert visitor id
1 parent 2caeab1 commit ce4b4ed

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

packages/react-use-intercom/cypress/e2e/visitorId.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ describe('getVisitorId', () => {
2222
cy.get('[data-cy=boot]').click();
2323
cy.wait('@intercomPing');
2424

25-
cy.get('[data-cy="visitorId"]').click();
25+
// FIXME: something goes wrong here in the pipeline
26+
cy.get('button[data-cy="visitorId"]').click({ timeout: 10000 });
2627

27-
cy.get('[data-cy="visitorIdValue"]').should('exist');
28+
cy.wait(10000);
29+
30+
cy.get('p[data-cy="visitorIdValue"]', { timeout: 10000 }).should('exist');
2831
});
2932
});

0 commit comments

Comments
 (0)