From 31efad7ea283d93f40fe67a7690f595ee0ba3196 Mon Sep 17 00:00:00 2001 From: Callum Stott Date: Thu, 8 Aug 2024 09:28:46 +0100 Subject: [PATCH] Update test name --- .../android/feature/settings/ResetProjectTest.kt | 12 ++++++------ .../android/support/pages/ProjectManagementPage.kt | 4 +--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/collect_app/src/androidTest/java/org/odk/collect/android/feature/settings/ResetProjectTest.kt b/collect_app/src/androidTest/java/org/odk/collect/android/feature/settings/ResetProjectTest.kt index 31143d968dc..4587001d3e3 100644 --- a/collect_app/src/androidTest/java/org/odk/collect/android/feature/settings/ResetProjectTest.kt +++ b/collect_app/src/androidTest/java/org/odk/collect/android/feature/settings/ResetProjectTest.kt @@ -31,7 +31,7 @@ class ResetProjectTest { .openProjectSettingsDialog() .clickSettings() .clickProjectManagement() - .clickOnResetApplication() + .clickOnResetProject() .assertDisabled(R.string.reset_settings_button_reset) .clickOnString(R.string.reset_blank_forms) .clickOnString(R.string.reset_settings_button_reset) @@ -55,7 +55,7 @@ class ResetProjectTest { .openProjectSettingsDialog() .clickSettings() .clickProjectManagement() - .clickOnResetApplication() + .clickOnResetProject() .assertDisabled(R.string.reset_settings_button_reset) .clickOnString(R.string.reset_saved_forms) .clickOnString(R.string.reset_settings_button_reset) @@ -70,7 +70,7 @@ class ResetProjectTest { } @Test - fun canResetAdminSettings() { + fun canResetProtectedSettings() { rule.startAtFirstLaunch() .clickTryCollect() .openProjectSettingsDialog() @@ -88,7 +88,7 @@ class ResetProjectTest { .openProjectSettingsDialog() .clickSettings() .clickProjectManagement() - .clickOnResetApplication() + .clickOnResetProject() .clickOnString(R.string.reset_settings) .clickOnString(R.string.reset_settings_button_reset) .clickOKOnDialog(MainMenuPage()) @@ -125,7 +125,7 @@ class ResetProjectTest { .openProjectSettingsDialog() .clickSettings() .clickProjectManagement() - .clickOnResetApplication() + .clickOnResetProject() .clickOnString(R.string.reset_settings) .clickOnString(R.string.reset_settings_button_reset) .clickOKOnDialog(MainMenuPage()) @@ -145,7 +145,7 @@ class ResetProjectTest { .openProjectSettingsDialog() .clickSettings() .clickProjectManagement() - .clickOnResetApplication() + .clickOnResetProject() .assertText(R.string.reset_settings_dialog_title) .rotateToLandscape(ResetApplicationDialog()) .assertText(R.string.reset_settings_dialog_title) diff --git a/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/ProjectManagementPage.kt b/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/ProjectManagementPage.kt index 4f5a8c77f9c..f704e0aeb57 100644 --- a/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/ProjectManagementPage.kt +++ b/collect_app/src/androidTest/java/org/odk/collect/android/support/pages/ProjectManagementPage.kt @@ -1,7 +1,5 @@ package org.odk.collect.android.support.pages -import org.odk.collect.android.R - class ProjectManagementPage : Page() { override fun assertOnPage(): ProjectManagementPage { @@ -9,7 +7,7 @@ class ProjectManagementPage : Page() { return this } - fun clickOnResetApplication(): ProjectManagementPage { + fun clickOnResetProject(): ProjectManagementPage { clickOnString(org.odk.collect.strings.R.string.reset_project_settings_title) return this }