Skip to content

Commit 05e6b67

Browse files
committed
Add timeout to signup captcha e2e test
1 parent e48c1fa commit 05e6b67

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/captcha_signup.test.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ describe('captcha on signup', function () {
3434
beforeEach(function (done) {
3535
this.stub = h.stubGetChallenge({ required: false });
3636
this.stub = h.stubGetSignupChallenge([svgCaptchaRequiredResponse1, svgCaptchaRequiredResponse2]);
37-
this.lock = h.displayLock('', lockOpts, () => {
38-
h.clickSignUpTab();
39-
h.waitUntilExists(this.lock, '.auth0-lock-with-terms', () => {
40-
done();
37+
setTimeout(() => {
38+
this.lock = h.displayLock('', lockOpts, () => {
39+
h.clickSignUpTab();
40+
h.waitUntilExists(this.lock, '.auth0-lock-with-terms', () => {
41+
done();
42+
});
4143
});
42-
});
44+
}, 1000);
4345
});
4446

4547
afterEach(function () {

0 commit comments

Comments
 (0)