Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catroid 1598 #5014

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@

import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.FlakyTest;

import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matcher.ViewMatchers.isClickable;
import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
import static androidx.test.espresso.matcher.ViewMatchers.isRoot;
import static androidx.test.espresso.matcher.ViewMatchers.withText;
Expand All @@ -65,11 +68,12 @@ public void setUp() throws Exception {
}

@Category({Cat.AppUi.class, Level.Smoke.class})
@FlakyTest
@Test
public void testResourceFailedDialog() {
baseActivityTestRule.launchActivity(null);

onView(isRoot()).perform(CustomActions.wait(5000));
//onView(isRoot()).perform(CustomActions.wait(1000));

onView(withText(R.string.prestage_resource_not_available_title))
.check(matches(isDisplayed()));
Expand All @@ -80,6 +84,8 @@ public void testResourceFailedDialog() {

onView(withText(failedResourceMessage))
.check(matches(isDisplayed()));

onView(withText("OK")).perform(click());
}

public void createProject(String projectName) {
Expand Down