diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2012-11-03 22:02:09 +0000 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2012-11-03 22:02:09 +0000 |
commit | c5b68bb6ca35b40a4c45e97abf6e0a6725a6e66f (patch) | |
tree | 5c75713ac6cbf3f614a8ecdec2f467f725e05f37 /tests | |
parent | 23e5c952d820c881bdf139dfd7e7745021f3638e (diff) | |
download | etherpad-lite-c5b68bb6ca35b40a4c45e97abf6e0a6725a6e66f.zip |
Fixed clear authorship test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/frontend/specs/button_clear_authorship_colors.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/frontend/specs/button_clear_authorship_colors.js b/tests/frontend/specs/button_clear_authorship_colors.js index 3ab59b7d..c93e65e1 100644 --- a/tests/frontend/specs/button_clear_authorship_colors.js +++ b/tests/frontend/specs/button_clear_authorship_colors.js @@ -27,12 +27,8 @@ describe("clear authorship colors button", function(){ $firstTextElement.sendkeys(sentText); helper.waitFor(function(){ - return inner$("div").first().text() === sentText + originalText; // wait until we have the full value available + return inner$("div span").first().attr("class").indexOf("author") !== -1; // wait until we have the full value available }).done(function(){ - // does the first divs span include an author class? - var hasAuthorClass = inner$("div span").first().attr("class").indexOf("author") !== -1; - expect(hasAuthorClass).to.be(true); - //get the clear authorship colors button and click it var $clearauthorshipcolorsButton = chrome$(".buttonicon-clearauthorship"); $clearauthorshipcolorsButton.click(); |