Skip to content

Commit

Permalink
Added a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Dec 20, 2023
1 parent 5fb0d79 commit acf56bc
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import org.junit.Test;
import org.junit.rules.RuleChain;
import org.junit.runner.RunWith;
import org.odk.collect.android.R;
import org.odk.collect.android.support.pages.DeleteSavedFormPage;
import org.odk.collect.android.support.rules.CollectTestRule;
import org.odk.collect.android.support.rules.TestRuleChain;
import org.odk.collect.android.support.pages.MainMenuPage;
Expand Down Expand Up @@ -36,4 +38,18 @@ public void deletingAForm_removesFormFromFinalizedForms() {
.pressBack(new MainMenuPage())
.assertNumberOfFinalizedForms(0);
}

@Test
public void accessingSortMenuInDeleteSavedInstancesShouldNotCrashTheAppAfterRotatingTheDevice() {
rule.startAtMainMenu()
.copyForm("one-question.xml")
.startBlankForm("One Question")
.answerQuestion("what is your age", "30")
.swipeToEndScreen()
.clickFinalize()
.clickDeleteSavedForm()
.rotateToLandscape(new DeleteSavedFormPage())
.clickOnId(R.id.menu_sort)
.assertText(org.odk.collect.strings.R.string.sort_by);
}
}

0 comments on commit acf56bc

Please sign in to comment.