Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed May 26, 2024
1 parent 517faa1 commit d34c8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
package universe.constellation.orion.viewer.test.espresso

import android.os.Build
import androidx.test.espresso.Espresso
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.filters.SdkSuppress
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
import universe.constellation.orion.viewer.R
import universe.constellation.orion.viewer.test.framework.BookFile

@SdkSuppress(minSdkVersion = Build.VERSION_CODES.KITKAT)
@RunWith(Parameterized::class)
class AutoCropTest(bookDescription: BookFile) : PageSeekerTest(bookDescription){

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import androidx.test.espresso.action.Press
import androidx.test.espresso.action.Swipe
import androidx.test.espresso.action.Tap
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.filters.SdkSuppress
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
Expand Down Expand Up @@ -41,12 +40,12 @@ open class PageSeekerTest(bookDescription: BookFile): BaseViewerActivityTest(boo

private fun testGotoSwipe(swipe: Swipe) {
configure()
Thread.sleep(1000)
openGoTo()
val lastPageNumber = lastPageNumber0

onView(withId(R.id.page_picker_seeker)).perform(GeneralClickAction(Tap.SINGLE, GeneralLocation.CENTER_LEFT, Press.PINPOINT, InputDevice.SOURCE_TOUCHSCREEN,
MotionEvent.BUTTON_PRIMARY))

onView(withId(R.id.page_picker_seeker)).perform(GeneralSwipeAction(
swipe, GeneralLocation.CENTER_LEFT,
GeneralLocation.CENTER_RIGHT, Press.PINPOINT
Expand Down

0 comments on commit d34c8bd

Please sign in to comment.