hopefully fix another weirdly fluctuating test failure
This commit is contained in:
parent
4c644c336b
commit
0aa845f87e
1 changed files with 16 additions and 6 deletions
|
|
@ -23,12 +23,22 @@ describe("app.views.ServicesSelector", function(){
|
|||
// this tests the crazy css we have in a bassackwards way
|
||||
// check out toggling the services on the new publisher and make sure it works if you change stuff.
|
||||
it("selects the checkbox when the image is clicked", function(){
|
||||
waitsFor(function() {
|
||||
return ($("label[for=service_toggle_facebook] img").css("opacity") < 0.8);
|
||||
});
|
||||
|
||||
runs(function() {
|
||||
expect($("label[for=service_toggle_facebook] img").css("opacity")).toBeLessThan(0.8) //floating point weirdness, be safe.
|
||||
this.view.$("input[value='facebook']").select()
|
||||
});
|
||||
|
||||
waitsFor(function(){
|
||||
return $("label[for=service_toggle_facebook] img").css("opacity") == 1
|
||||
})
|
||||
});
|
||||
|
||||
runs(function() {
|
||||
expect($("label[for=service_toggle_facebook] img").css("opacity")).toBeGreaterThan(0.8) //floating point weirdness, be safe.
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue