Simulate the passage of time in protractor?
问题 I have a few spots where things happen in the UI on a delay using $timeout or $interval. Here's a simplified example: Controller code : $timeout(function() { $scope.showElement = true; }, 10000); HTML : <div id="myElement" ng-show="showElement"></div> I want to be able to create an end-to-end Protractor test that tests whether #myElement gets displayed after a 10 second wait. The only way I have found to do this is to call browser.sleep(10000), which results in an actual 10-second delay in my