Fixed clear authorship test
This commit is contained in:
parent
23e5c952d8
commit
c5b68bb6ca
|
@ -27,12 +27,8 @@ describe("clear authorship colors button", function(){
|
||||||
$firstTextElement.sendkeys(sentText);
|
$firstTextElement.sendkeys(sentText);
|
||||||
|
|
||||||
helper.waitFor(function(){
|
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(){
|
}).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
|
//get the clear authorship colors button and click it
|
||||||
var $clearauthorshipcolorsButton = chrome$(".buttonicon-clearauthorship");
|
var $clearauthorshipcolorsButton = chrome$(".buttonicon-clearauthorship");
|
||||||
$clearauthorshipcolorsButton.click();
|
$clearauthorshipcolorsButton.click();
|
||||||
|
|
Loading…
Reference in New Issue