From 93804c73897e56544b3af5dbb2c3464b43ae9cc9 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 12 Jul 2020 17:40:31 +0200 Subject: [PATCH] refactor: due to Gitea updates (8b428454 follow-up) --- m-test02.robot | 2 +- m-test16.robot | 4 ++-- m-test17.robot | 4 ++-- m-test18.robot | 6 +++--- m-test19.robot | 4 ++-- test16.robot | 4 ++-- test17.robot | 5 +++-- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/m-test02.robot b/m-test02.robot index 772cb1a..360ff98 100644 --- a/m-test02.robot +++ b/m-test02.robot @@ -8,7 +8,7 @@ ${DELAY} 0.2 ${BURGER_MENU} //*[@id="navbar-expand-toggle"] ${LOGIN_BUTTON} //*[@id="navbar"]/div[2]/a[2] -${SIGN_IN} //body/div[2]/div[2]/div[2]/div/form/div[4]/button +${SIGN_IN} //body/div/div[2]/div[2]/div/form/div[4]/button *** Keywords *** Screenshot page diff --git a/m-test16.robot b/m-test16.robot index b0da945..bed389a 100644 --- a/m-test16.robot +++ b/m-test16.robot @@ -19,10 +19,10 @@ ${SEARCH_BUTTON} //form/div/button ${SEARCH_DOTFILES_URL} https://git.dotya.ml/explore/repos?tab=&sort=recentupdate&q=dotfiles ${WANDERER_DOTFILES_ENTRY} //a[@href="/wanderer/dotfiles"] ${STAR_A_REPO} //form[2]/div/button -${SHOW_STARGAZERS} //body/div[2]/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a +${SHOW_STARGAZERS} //body/div/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a ${DOTFILES_URL} https://git.dotya.ml/wanderer/dotfiles ${DOTFILES_STARS_URL} ${DOTFILES_URL}/stars -${STARGAZERS_LIST} //body/div[2]/div[2]* +${STARGAZERS_LIST} //body/div/div[2]* *** Keywords *** Screenshot page diff --git a/m-test17.robot b/m-test17.robot index 3fa4b35..a3fbe57 100644 --- a/m-test17.robot +++ b/m-test17.robot @@ -19,10 +19,10 @@ ${SEARCH_BUTTON} //form/div/button ${SEARCH_DOTFILES_URL} https://git.dotya.ml/explore/repos?tab=&sort=recentupdate&q=dotfiles ${WANDERER_DOTFILES_ENTRY} //a[@href="/wanderer/dotfiles"] ${UNSTAR_A_REPO} //form[2]/div/button -${SHOW_STARGAZERS} //body/div[2]/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a +${SHOW_STARGAZERS} //body/div/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a ${DOTFILES_URL} https://git.dotya.ml/wanderer/dotfiles ${DOTFILES_STARS_URL} ${DOTFILES_URL}/stars -${STARGAZERS_LIST} //body/div[2]/div[2]*[contains(text(), "dat_test_usr")] +${STARGAZERS_LIST} //body/div/div[2]*[contains(text(), "dat_test_usr")] *** Keywords *** Screenshot page diff --git a/m-test18.robot b/m-test18.robot index 6cd42c4..adcc389 100644 --- a/m-test18.robot +++ b/m-test18.robot @@ -18,14 +18,14 @@ ${EXPLORE_PAGE_URL} https://git.dotya.ml/explore/repos ${ADD_SOMETHING_BUTTON} //*[@id="navbar"]/div[2]/div[1] ${NEW_MIGRATION_BUTTON} //*[@id="menuitem_2"] ${MIGRATION_URL_INPUT} //*[@id="clone_addr"] -${MIGRATION_REPO_VISIBILITY_CHECKBOX} //body/div[2]/div[2]/div/div/form/div/div[6]/div/input -${MIGRATION_REPO_IS_A_MIRROR_CHECKBOX} //body/div[2]/div[2]/div/div/form/div/div[7]/div +${MIGRATION_REPO_VISIBILITY_CHECKBOX} //body/div/div[2]/div/div/form/div/div[6]/div/input +${MIGRATION_REPO_IS_A_MIRROR_CHECKBOX} //body/div/div[2]/div/div/form/div/div[7]/div ${MIGRATION_REPO_DESCRIPTION_INPUT} //*[@id="description"] ${MIGRATE_REPO_BUTTON} //button[contains(., "Migrate Repository")] ${BLAKE3_CLONE_URL} https://github.com/BLAKE3-team/BLAKE3 ${BLAKE3_ABOUT_TEXT} official implementations of the BLAKE3 cryptographic hash function -${BLAKE3_REPO_LANGUAGE_STATS} //body/div[2]/div[2]/div[2]/div[4]/a +${BLAKE3_REPO_LANGUAGE_STATS} //body/div/div[2]/div[2]/div[4]/a ${BLAKE3_REPO_URL} https://git.dotya.ml/dat_test_usr/BLAKE3 *** Keywords *** diff --git a/m-test19.robot b/m-test19.robot index f3a845f..999a3cd 100644 --- a/m-test19.robot +++ b/m-test19.robot @@ -20,9 +20,9 @@ ${SEARCH_FIELD} //form/div/input ${SEARCH_BLAKE3_URL} https://git.dotya.ml/explore/repos?tab=&sort=recentupdate&q=BLAKE3 ${DAT_TEST_USR_BLAKE3} //a[@href="/dat_test_usr/BLAKE3"] ${BLAKE3_MIRROR_URL} https://git.dotya.ml/dat_test_usr/BLAKE3 -${REPO_SETTINGS} //body/div[2]/div[2]/div[1]/div[2]/div/div/a[@href="/dat_test_usr/BLAKE3/settings"] +${REPO_SETTINGS} //body/div/div[2]/div[1]/div[2]/div/div/a[@href="/dat_test_usr/BLAKE3/settings"] ${DELETE_REPO_BUTTON} //button[@data-modal="#delete-repo-modal"] -${REPO_NAME_INPUT} //body/div[3]/div/div[2]/form/div[2]/input +${REPO_NAME_INPUT} //body/div[2]/div/div[2]/form/div[2]/input ${BLAKE3_REPO_NAME} BLAKE3 ${DELETE_REPO_FINAL_BUTTON} //*[@id="delete-repo-modal"]/div[2]/form/div[3]/button diff --git a/test16.robot b/test16.robot index e0a3131..6eba0c7 100644 --- a/test16.robot +++ b/test16.robot @@ -16,10 +16,10 @@ ${SEARCH_FIELD} //form/div/input ${SEARCH_DOTFILES_URL} https://git.dotya.ml/explore/repos?tab=&sort=recentupdate&q=dotfiles ${WANDERER_DOTFILES_ENTRY} //a[@href="/wanderer/dotfiles"] ${STAR_A_REPO} //form[2]/div/button -${SHOW_STARGAZERS} //body/div[2]/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a +${SHOW_STARGAZERS} //body/div/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a ${DOTFILES_URL} https://git.dotya.ml/wanderer/dotfiles ${DOTFILES_STARS_URL} ${DOTFILES_URL}/stars -${STARGAZERS_LIST} //body/div[2]/div[2]* +${STARGAZERS_LIST} //body/div/div[2]* *** Keywords *** Screenshot page diff --git a/test17.robot b/test17.robot index 1f26b44..04f60a4 100644 --- a/test17.robot +++ b/test17.robot @@ -16,10 +16,10 @@ ${SEARCH_FIELD} //form/div/input ${SEARCH_DOTFILES_URL} https://git.dotya.ml/explore/repos?tab=&sort=recentupdate&q=dotfiles ${WANDERER_DOTFILES_ENTRY} //a[@href="/wanderer/dotfiles"] ${UNSTAR_A_REPO} //form[2]/div/button -${SHOW_STARGAZERS} //body/div[2]/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a +${SHOW_STARGAZERS} //body/div/div[2]/div[1]/div[1]/div/div[2]/form[2]/div/a ${DOTFILES_URL} https://git.dotya.ml/wanderer/dotfiles ${DOTFILES_STARS_URL} ${DOTFILES_URL}/stars -${STARGAZERS_LIST} //body/div[2]/div[2]/div[2]/ul/li/*[contains(text(), "dat_test_usr")] +${STARGAZERS_LIST} //body/div/div[2]/div[2]/ul/li/*[contains(text(), "dat_test_usr")] *** Keywords *** Screenshot page @@ -76,6 +76,7 @@ unstar wanderer's dotfiles repo Set Window Size 1920 1080 Maximize Browser Window + Wait Until Element Is Visible ${LOGIN_BUTTON} timeout=10.0 Click Element ${LOGIN_BUTTON} Sleep ${DELAY} Screenshot page