When it becomes to expensive, or when the ROI isn’t worth it anymore.
As @mirza also said, when it creates more problems then you originally have.
When there are things you cannot solve with the tool.
We moved from protractor to Cypress, just because it’s being deprecated. Also because it didn’t solve all issues and the maintenance with huge because of all the flakyness ![]()