diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2012-10-08 18:42:52 +0100 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2012-10-08 18:42:52 +0100 |
commit | 397036db4665aa0e399d8c50c7fe426fb9350b56 (patch) | |
tree | 5dc7706d03fd9f532b92b331b987ca5888f0e88d /tests/frontend/specs/keystroke_urls_become_clickable.js | |
parent | 7adef188fff416ff710fe9131b38c10665528c37 (diff) | |
download | etherpad-lite-397036db4665aa0e399d8c50c7fe426fb9350b56.zip |
finished urls test
Diffstat (limited to 'tests/frontend/specs/keystroke_urls_become_clickable.js')
-rw-r--r-- | tests/frontend/specs/keystroke_urls_become_clickable.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/frontend/specs/keystroke_urls_become_clickable.js b/tests/frontend/specs/keystroke_urls_become_clickable.js index 3f16ba4e..64ef3d6a 100644 --- a/tests/frontend/specs/keystroke_urls_become_clickable.js +++ b/tests/frontend/specs/keystroke_urls_become_clickable.js @@ -16,7 +16,9 @@ describe("urls", function(){ firstTextElement.sendkeys('{selectall}'); // select all firstTextElement.sendkeys('{del}'); // clear the first line firstTextElement.sendkeys('http://etherpad.org'); // insert a URL - - done(); + + helper.waitFor(function(){ + return inner$("div").first().find("a").length === 1; + }, 2000).done(done); }); }); |