Skip to content

Commit

Permalink
Update test name
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Aug 8, 2024
1 parent ad54d8e commit 31efad7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -70,7 +70,7 @@ class ResetProjectTest {
}

@Test
fun canResetAdminSettings() {
fun canResetProtectedSettings() {
rule.startAtFirstLaunch()
.clickTryCollect()
.openProjectSettingsDialog()
Expand All @@ -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())
Expand Down Expand Up @@ -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())
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package org.odk.collect.android.support.pages

import org.odk.collect.android.R

class ProjectManagementPage : Page<ProjectManagementPage>() {

override fun assertOnPage(): ProjectManagementPage {
assertText(org.odk.collect.strings.R.string.project_management_section_title)
return this
}

fun clickOnResetApplication(): ProjectManagementPage {
fun clickOnResetProject(): ProjectManagementPage {
clickOnString(org.odk.collect.strings.R.string.reset_project_settings_title)
return this
}
Expand Down

0 comments on commit 31efad7

Please sign in to comment.