package zlotindaniel.memorize;

import android.support.test.uiautomator.By;
import android.support.test.uiautomator.Until;

import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class HappyPathE2ETest extends BaseE2ETest {

	@Test
	public void _1_HappyPath() throws Exception {
		launchApp();

		device().wait(Until.hasObject(By.text("Phrase1")), TIMEOUT);

		assertDisplayed("Phrase1");
		clickOn("Phrase1");
		assertDisplayed("Definition1");
		clickOn("Definition1");
		assertDisplayed("Phrase2");
		clickOn("Phrase2");
		assertDisplayed("Definition2");
		clickOn("Definition2");
		assertDisplayed("Phrase3");
		clickOn("Phrase3");
		assertDisplayed("Definition3");
		clickOn("Definition3");
		assertDisplayed("Phrase1");
	}
}

@@ -424,22 +424,28 @@
 y.text(%22
+Card 
 Phrase
+ 
 1%22)), TI
@@ -468,30 +468,36 @@
 tDisplayed(%22
+Card 
 Phrase
+ 
 1%22);%0A%09%09click
@@ -500,22 +500,28 @@
 lickOn(%22
+Card 
 Phrase
+ 
 1%22);%0A%09%09a
@@ -528,32 +528,37 @@
 ssertDisplayed(%22
+Card 
 Definition1%22);%0A%09
@@ -547,24 +547,25 @@
 d Definition
+ 
 1%22);%0A%09%09click
@@ -560,32 +560,37 @@
 1%22);%0A%09%09clickOn(%22
+Card 
 Definition1%22);%0A%09
@@ -583,16 +583,17 @@
 finition
+ 
 1%22);%0A%09%09a
@@ -608,22 +608,28 @@
 played(%22
+Card 
 Phrase
+ 
 2%22);%0A%09%09c
@@ -636,22 +636,28 @@
 lickOn(%22
+Card 
 Phrase
+ 
 2%22);%0A%09%09a
@@ -664,32 +664,37 @@
 ssertDisplayed(%22
+Card 
 Definition2%22);%0A%09
@@ -683,24 +683,25 @@
 d Definition
+ 
 2%22);%0A%09%09click
@@ -696,32 +696,37 @@
 2%22);%0A%09%09clickOn(%22
+Card 
 Definition2%22);%0A%09
@@ -719,16 +719,17 @@
 finition
+ 
 2%22);%0A%09%09a
@@ -744,22 +744,28 @@
 played(%22
+Card 
 Phrase
+ 
 3%22);%0A%09%09c
@@ -772,22 +772,28 @@
 lickOn(%22
+Card 
 Phrase
+ 
 3%22);%0A%09%09a
@@ -808,16 +808,21 @@
 played(%22
+Card 
 Definiti
@@ -819,24 +819,25 @@
 d Definition
+ 
 3%22);%0A%09%09click
@@ -840,16 +840,21 @@
 lickOn(%22
+Card 
 Definiti
@@ -855,16 +855,17 @@
 finition
+ 
 3%22);%0A%09%09a
@@ -880,22 +880,28 @@
 played(%22
+Card 
 Phrase
+ 
 1%22);%0A%09%7D%0A

fix e2e