From c5b68bb6ca35b40a4c45e97abf6e0a6725a6e66f Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Sat, 3 Nov 2012 22:02:09 +0000 Subject: [PATCH] Fixed clear authorship test --- tests/frontend/specs/button_clear_authorship_colors.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/frontend/specs/button_clear_authorship_colors.js b/tests/frontend/specs/button_clear_authorship_colors.js index 3ab59b7d1..c93e65e1a 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();