Describe a scenario where an automated test failed intermittently. How did you investigate and permanently resolve the root cause?