Skip to content

Commit

Permalink
Merge pull request #101 from Giphy/feat/PG-1261
Browse files Browse the repository at this point in the history
chore(e2e): fix GIPHY Dialog selectors
  • Loading branch information
pshoniuk authored Apr 27, 2023
2 parents 82b289f + 491a526 commit bcda248
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,6 @@ preBuild.dependsOn configureGiphyVideoPlayerAdapter
dependencies {
// noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation 'com.giphy.sdk:ui:2.3.1'
implementation 'com.giphy.sdk:ui:2.3.4'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.5.31'
}
6 changes: 5 additions & 1 deletion e2e/GiphyDialogSettings.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ function getGPHDialogTouchInterceptor() {
if (device.getPlatform() === 'ios') {
return element(by.type('UICollectionView').withDescendant(by.type('GiphyUISDK.GPHMediaCell')))
}
return element(by.type('com.giphy.sdk.ui.views.GPHTouchInterceptor'))
return element(
by
.type('com.giphy.sdk.ui.views.GPHTouchInterceptor')
.withAncestor(by.type('com.giphy.sdk.ui.views.dialogview.GiphyDialogView'))
)
}

function getGPHDialogMediaCell() {
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 113b401ed56c27385e4e1f7e90d7bb9e356e084a

COCOAPODS: 1.12.0
COCOAPODS: 1.12.1

0 comments on commit bcda248

Please sign in to comment.