Both are correct translations. The nuance is slightly different in that the present perfect emphasizes the current situation (the fact that she is no longer here), while the simple past tense emphasizes the past action. A weakness of Duolingo is the lack of context. 그녀는 어제 떠나다. would have eliminated the confusion.