casper: Fix waiting condition in message deletion tests.
casper: Fix waiting condition in message deletion tests.

We now specifically wait for the length to decrease by one. This seems
like a more deterministic condition to wait on.

Previously we were waiting till the id of the deleted message remained
visible; intuitively, this should have worked but it seems that there
is some race condition that was causing the test to fail sporadically.

brockwhittaker/zulip,verma-varsha/zulip,vaidap/zulip,andersk/zulip,rht/zulip,Galexrt/zulip,rishig/zulip,eeshangarg/zulip,punchagan/zulip,eeshangarg/zulip,tommyip/zulip,tommyip/zulip,vaidap/zulip,rht/zulip,synicalsyntax/zulip,jrowan/zulip,rht/zulip,rishig/zulip,jrowan/zulip,showell/zulip,brainwane/zulip,Galexrt/zulip,Galexrt/zulip,kou/zulip,dhcrzf/zulip,jrowan/zulip,dhcrzf/zulip,brockwhittaker/zulip,eeshangarg/zulip,jackrzhang/zulip,mahim97/zulip,brockwhittaker/zulip,rht/zulip,punchagan/zulip,timabbott/zulip,verma-varsha/zulip,showell/zulip,brainwane/zulip,showell/zulip,andersk/zulip,zulip/zulip,rishig/zulip,amanharitsh123/zulip,punchagan/zulip,dhcrzf/zulip,jackrzhang/zulip,rht/zulip,mahim97/zulip,showell/zulip,punchagan/zulip,kou/zulip,shubhamdhama/zulip,andersk/zulip,tommyip/zulip,punchagan/zulip,amanharitsh123/zulip,jrowan/zulip,andersk/zulip,dhcrzf/zulip,Galexrt/zulip,brainwane/zulip,eeshangarg/zulip,jackrzhang/zulip,zulip/zulip,rishig/zulip,timabbott/zulip,jackrzhang/zulip,eeshangarg/zulip,showell/zulip,amanharitsh123/zulip,amanharitsh123/zulip,synicalsyntax/zulip,timabbott/zulip,vabs22/zulip,rishig/zulip,eeshangarg/zulip,zulip/zulip,synicalsyntax/zulip,verma-varsha/zulip,brainwane/zulip,dhcrzf/zulip,vaidap/zulip,brainwane/zulip,andersk/zulip,brockwhittaker/zulip,hackerkid/zulip,rht/zulip,andersk/zulip,vaidap/zulip,kou/zulip,vabs22/zulip,punchagan/zulip,mahim97/zulip,vaidap/zulip,dhcrzf/zulip,showell/zulip,zulip/zulip,hackerkid/zulip,tommyip/zulip,punchagan/zulip,rishig/zulip,vabs22/zulip,hackerkid/zulip,kou/zulip,Galexrt/zulip,zulip/zulip,shubhamdhama/zulip,vabs22/zulip,vabs22/zulip,vaidap/zulip,shubhamdhama/zulip,timabbott/zulip,brainwane/zulip,showell/zulip,Galexrt/zulip,andersk/zulip,amanharitsh123/zulip,brockwhittaker/zulip,zulip/zulip,shubhamdhama/zulip,hackerkid/zulip,rht/zulip,jackrzhang/zulip,tommyip/zulip,brockwhittaker/zulip,mahim97/zulip,verma-varsha/zulip,verma-varsha/zulip,dhcrzf/zulip,zulip/zulip,jrowan/zulip,hackerkid/zulip,rishig/zulip,brainwane/zulip,synicalsyntax/zulip,kou/zulip,synicalsyntax/zulip,jackrzhang/zulip,timabbott/zulip,Galexrt/zulip,shubhamdhama/zulip,mahim97/zulip,timabbott/zulip,shubhamdhama/zulip,vabs22/zulip,jackrzhang/zulip,synicalsyntax/zulip,amanharitsh123/zulip,timabbott/zulip,hackerkid/zulip,synicalsyntax/zulip,tommyip/zulip,kou/zulip,mahim97/zulip,hackerkid/zulip,eeshangarg/zulip,verma-varsha/zulip,kou/zulip,jrowan/zulip,tommyip/zulip,shubhamdhama/zulip