make this test more robust

This commit is contained in:
Jonathan Lipps
2013-05-22 19:14:20 -07:00
parent 91d599cf49
commit 252fa5b362
+2 -2
View File
@@ -105,12 +105,12 @@ describeWd('gestures', function(h) {
});
});
it('should flick screen by speed', function(done) {
h.driver.elementByName("Views", function(err) {
h.driver.elementByName("Peer Activities", function(err) {
// shouldn't be visible
should.exist(err);
h.driver.flick(0, -100, function(err) {
should.not.exist(err);
h.driver.elementByName("Views", function(err, el) {
h.driver.elementByName("Peer Activities", function(err, el) {
should.not.exist(err);
should.exist(el.value);
done();