Created
November 20, 2019 20:41
-
-
Save elihart/d5e7d96043264c46d93bc7e312ccbe0f to your computer and use it in GitHub Desktop.
InteractionTestActivity
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
class InteractionTestActivity : IntegrationTestActivity() { | |
override fun testCurrentScreen( | |
mockProvider: MockedFragmentProvider, | |
fragment: MvRxFragment, | |
resetView: (onViewReset: (MvRxFragment) -> Unit) -> Unit, | |
finishedTestingFragment: () -> Unit | |
) { | |
ActivityInteractionTester( | |
activity = this, | |
resetViewCallback = resetView, | |
entryPointProvider = { this.window.decorView }, | |
interactionManager = interactionManager, | |
onEnd = { reportJson -> | |
happoJsonSnapshotBuilder.add(reportJson, mockProvider.fragmentName, mockProvider.mockData.name) | |
finishedTestingFragment() | |
} | |
).start() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment