[Pranjali] refactored cukes ( replaced sleep with wait)