be really pedantic about the stupid service selector spec
This commit is contained in:
parent
4c7e82fec9
commit
3e78dd702b
1 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,10 @@ describe("app.views.ServicesSelector", function(){
|
||||||
it("selects the checkbox when the image is clicked", function(){
|
it("selects the checkbox when the image is clicked", function(){
|
||||||
expect($("label[for=service_toggle_facebook]").css("opacity")).toBeLessThan(0.8) //floating point weirdness, be safe.
|
expect($("label[for=service_toggle_facebook]").css("opacity")).toBeLessThan(0.8) //floating point weirdness, be safe.
|
||||||
this.view.$("input[value='facebook']").select()
|
this.view.$("input[value='facebook']").select()
|
||||||
expect($("label[for=service_toggle_facebook]").css("opacity")).toBe('1')
|
|
||||||
|
waitsFor(function(){
|
||||||
|
return $("label[for=service_toggle_facebook]").css("opacity") == 1
|
||||||
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Loading…
Reference in a new issue