forked from paulkokos/discountFinderAndroid
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from xTeamTEICM/dev
Dev
- Loading branch information
Showing
39 changed files
with
234 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,48 +8,39 @@ | |
import org.junit.Test; | ||
|
||
import eu.jnksoftware.discountfinderandroid.R; | ||
import eu.jnksoftware.discountfinderandroid.ui.general.Login; | ||
|
||
import static android.support.test.espresso.Espresso.onView; | ||
import static android.support.test.espresso.action.ViewActions.click; | ||
import static android.support.test.espresso.action.ViewActions.closeSoftKeyboard; | ||
import static android.support.test.espresso.action.ViewActions.typeText; | ||
import static android.support.test.espresso.assertion.ViewAssertions.matches; | ||
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed; | ||
import static android.support.test.espresso.matcher.ViewMatchers.withId; | ||
import static android.support.test.espresso.matcher.ViewMatchers.withText; | ||
|
||
public class MenuCustomerTest { | ||
|
||
/*@Rule | ||
public ActivityTestRule<MenuCustomer> menuCustomerActivityTestRule = new ActivityTestRule<>(MenuCustomer.class); | ||
@Rule | ||
public ActivityTestRule<Login> menuCustomerActivityTestRule = new ActivityTestRule<>(Login.class); | ||
|
||
@Before | ||
public void setUp() throws Exception { | ||
} | ||
|
||
@Test | ||
public void menuCustomerComponentsDisplayed(){ | ||
onView(withId(R.id.tvNewDiscounts)).check(matches(isDisplayed())); | ||
onView(withId(R.id.filtersBtn)).check(matches(isDisplayed())); | ||
onView(withId(R.id.settingsBtn)).check(matches(isDisplayed())); | ||
// onView(withId(R.id.showDiscountsButton)).check(matches(isDisplayed())); | ||
onView(withId(R.id.aboutBtn)).check(matches(isDisplayed())); | ||
onView(withId(R.id.showShopsButton)).check(matches(isDisplayed())); | ||
public void menuCustomerComponentsDisplayed() throws InterruptedException { | ||
onView(withId(R.id.loginEMailField)).perform(typeText("[email protected]"),closeSoftKeyboard()); | ||
onView(withId(R.id.loginPasswordField)).perform(typeText("myPassword"),closeSoftKeyboard()); | ||
onView(withId(R.id.loginBtn)).perform(click()); | ||
Thread.sleep(5000); | ||
onView(withId(R.id.menuCustomerDiscountsButton)).check(matches(isDisplayed())); | ||
onView(withId(R.id.menuCustomerPreferenceButton)).check(matches(isDisplayed())); | ||
onView(withId(R.id.menuCustomerAboutButton)).check(matches(isDisplayed())); | ||
onView(withId(R.id.tvMenuCustomerTopDiscounts)).check(matches(isDisplayed())); | ||
} | ||
|
||
@Test | ||
public void testShopsButtonClick(){ | ||
//onView(withId(R.id.showDiscountsButton)).perform(click()); | ||
// onView(withId(R.id.shopsList)).check(matches(isDisplayed())); | ||
} | ||
@Test | ||
public void testAboutButtonClick(){ | ||
onView(withId(R.id.aboutBtn)).perform(click()); | ||
onView(withText("Copyright Alright Reserved")).check(matches(isDisplayed())); | ||
} | ||
@After | ||
public void tearDown() throws Exception { | ||
} | ||
*/ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 1 addition & 7 deletions
8
app/src/main/java/eu/jnksoftware/discountfinderandroid/Apis/RetrofitClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
.../main/java/eu/jnksoftware/discountfinderandroid/services/MyFirebaseInstanceIDService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.