Fixed clear authorship test

This commit is contained in:
Peter 'Pita' Martischka 2012-11-03 22:02:09 +00:00
parent 23e5c952d8
commit c5b68bb6ca
1 changed files with 1 additions and 5 deletions

View File

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