Skip to content

Commit

Permalink
ci: TestAllFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkray committed Oct 7, 2024
1 parent 9b769ce commit 5a24d61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withContentDescription
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.UiDevice
Expand Down Expand Up @@ -72,7 +73,9 @@ class CaptureScreen {
}

fun clickFilesButton(): CaptureScreen {
onView(withId(net.gini.android.capture.R.id.gc_button_import_document)).perform(click())
// onView(withId(net.gini.android.capture.R.id.gc_button_import_document)).perform(click())
// onView(withContentDescription("Files")).perform(click())
onView(withId(net.gini.android.capture.R.id.gc_button_import)).perform(click())
return this
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class DigitalInvoiceEditButtonTests {
onboardingScreen.clickSkipButton()
// Espresso.onIdle()
Thread.sleep(3000)
// captureScreen.clickFilesButton()
captureScreen.clickFilesButton()
captureScreen.clickFiles()
pdfUploader.uploadPdfFromFiles("Testrechnung-RA-1.pdf")
idlingResource.waitForIdle()
Expand Down
2 changes: 1 addition & 1 deletion capture-sdk/sdk/src/main/res/layout/gc_fragment_camera.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
android:id="@+id/gc_document_import_button_group"
android:layout_width="wrap_content"
android:visibility="gone"
tools:visibility="gone"
tools:visibility="visible"
android:layout_height="wrap_content"
app:constraint_referenced_ids="gc_button_import_wrapper, gc_button_import" />

Expand Down

0 comments on commit 5a24d61

Please sign in to comment.