From f5166431be9ac6739f3525c0cf3f1d517766dcfe Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Tue, 23 Oct 2018 09:08:54 +0800 Subject: [PATCH] Update automation test case "Delete Repo" (#6087) Replace the "Sleep x seconds" with "Wait Until xxx" in the "Delete Repo" case Signed-off-by: Wenkai Yin --- tests/resources/Harbor-Pages/Project.robot | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/resources/Harbor-Pages/Project.robot b/tests/resources/Harbor-Pages/Project.robot index 0d5b6b78a..84338fae7 100644 --- a/tests/resources/Harbor-Pages/Project.robot +++ b/tests/resources/Harbor-Pages/Project.robot @@ -105,11 +105,10 @@ Make Project Public Delete Repo [Arguments] ${projectname} Click Element xpath=//clr-dg-row[contains(.,"${projectname}")]//clr-checkbox//label - Sleep 1 + Wait Until Element Is Enabled //button[contains(.,"Delete")] Click Element xpath=//button[contains(.,"Delete")] - Sleep 1 + Wait Until Element Is Visible //clr-modal//button[2] Click Element xpath=//clr-modal//button[2] - Sleep 1 Delete Repo on CardView [Arguments] ${reponame}