wait for css animation in lettuce test