Skip to content

Commit

Permalink
Detox:
Browse files Browse the repository at this point in the history
Corrected Android build
  • Loading branch information
Alex Risch authored and Alex Risch committed Feb 15, 2024
1 parent fcd54d8 commit 4484049
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ dependencies {
// For loading .env
implementation project(':react-native-config')
// For Detox
androidTestImplementation 'com.wix:detox:+'
androidTestImplementation('com.wix:detox:+'){
exclude module: "protobuf-lite"
}
}

apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
Expand Down
1 change: 1 addition & 0 deletions example/e2e/utils/createConversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const createConversation = async () => {
'0xc93C111dcb2Df6Bb25a3F9035D5cd47bDc0381d0'
)
await element(by.id('start-conversation-button')).tap()
await element(by.id('start-conversation-button')).tap()
await waitFor(element(by.id('conversation-screen')))
.toBeVisible()
.withTimeout(15000)
Expand Down
4 changes: 4 additions & 0 deletions example/e2e/utils/sendMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ export const sendMessage = async (message: string) => {
await waitFor(element(by.id('conversation-screen')))
.toBeVisible()
.withTimeout(15000)
await waitFor(element(by.id('message-input')))
.toBeVisible()
.withTimeout(15000)
await element(by.id('message-input')).typeText(message)
await element(by.id('send-message-button')).tap()
await element(by.id('send-message-button')).tap()

await waitFor(element(by.id(/^conversation-message-.*/)))
.toBeVisible()
Expand Down

0 comments on commit 4484049

Please sign in to comment.