Skip to content

Commit

Permalink
add waitForCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
rmi22186 committed Oct 10, 2024
1 parent 096ef81 commit 470aea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/src/tests-identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ describe('identity', function() {

mParticle.init(apiKey, window.mParticle.config);

waitForCondition(hasLoginReturned)
.then(() => {

const cookiesAfterInit = findCookie();
cookiesAfterInit.should.have.properties('gs', 'cu', testMPID);

Expand Down Expand Up @@ -705,6 +708,7 @@ describe('identity', function() {
});

done();
})
}).catch(done);
});
});
Expand Down

0 comments on commit 470aea7

Please sign in to comment.