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();