Skip to content

Commit

Permalink
Add timeout to signup captcha e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
TSLarson committed Nov 5, 2024
1 parent e48c1fa commit 05e6b67
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/captcha_signup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ describe('captcha on signup', function () {
beforeEach(function (done) {
this.stub = h.stubGetChallenge({ required: false });
this.stub = h.stubGetSignupChallenge([svgCaptchaRequiredResponse1, svgCaptchaRequiredResponse2]);
this.lock = h.displayLock('', lockOpts, () => {
h.clickSignUpTab();
h.waitUntilExists(this.lock, '.auth0-lock-with-terms', () => {
done();
setTimeout(() => {
this.lock = h.displayLock('', lockOpts, () => {
h.clickSignUpTab();
h.waitUntilExists(this.lock, '.auth0-lock-with-terms', () => {
done();
});
});
});
}, 1000);
});

afterEach(function () {
Expand Down

0 comments on commit 05e6b67

Please sign in to comment.