Skip to content

Commit ddde2e6

Browse files
committed
Adding a test for testing inRead Vertical
1 parent 14b377c commit ddde2e6

File tree

4 files changed

+37
-24
lines changed

4 files changed

+37
-24
lines changed

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project 'TeadsSampleApp.xcodeproj'
22

33
# Uncomment the next line to define a global platform for your project
4-
# platform :ios, '10.0'
4+
platform :ios, '10.0'
55

66
target 'TeadsSampleApp' do
77
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks

Podfile.lock

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PODS:
5454
- nanopb/decode (2.30908.0)
5555
- nanopb/encode (2.30908.0)
5656
- PromisesObjC (2.0.0)
57-
- Smart-Core-SDK (7.15.0)
57+
- Smart-Core-SDK (7.16.0)
5858
- Smart-Display-SDK (7.15.0):
5959
- Smart-Core-SDK (~> 7.15)
6060
- TeadsAdMobAdapter (5.0.10):
@@ -71,10 +71,10 @@ PODS:
7171
- TeadsSDK/Core (5.0.10)
7272

7373
DEPENDENCIES:
74-
- TeadsAdMobAdapter (from `./`)
75-
- TeadsMoPubAdapter (from `./`)
76-
- TeadsSASAdapter (from `./`)
77-
- TeadsSDK (from `./`)
74+
- TeadsAdMobAdapter (~> 5.0)
75+
- TeadsMoPubAdapter (~> 5.0)
76+
- TeadsSASAdapter (~> 5.0)
77+
- TeadsSDK (~> 5.0)
7878

7979
SPEC REPOS:
8080
trunk:
@@ -87,16 +87,10 @@ SPEC REPOS:
8787
- PromisesObjC
8888
- Smart-Core-SDK
8989
- Smart-Display-SDK
90-
91-
EXTERNAL SOURCES:
92-
TeadsAdMobAdapter:
93-
:path: "./"
94-
TeadsMoPubAdapter:
95-
:path: "./"
96-
TeadsSASAdapter:
97-
:path: "./"
98-
TeadsSDK:
99-
:path: "./"
90+
- TeadsAdMobAdapter
91+
- TeadsMoPubAdapter
92+
- TeadsSASAdapter
93+
- TeadsSDK
10094

10195
SPEC CHECKSUMS:
10296
Google-Mobile-Ads-SDK: 05e5d68bb42a61b2e5bef336a52789785605aa22
@@ -106,13 +100,13 @@ SPEC CHECKSUMS:
106100
mopub-ios-sdk: 39dd404dc791e543979b91aa8e3b27197af91377
107101
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
108102
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
109-
Smart-Core-SDK: 84f5527be798a0497b33391db73691dc3c7bc713
103+
Smart-Core-SDK: 6eb61082ec48ad48cf416708487b1ad3c25770cc
110104
Smart-Display-SDK: 33f0325dfb1bf93256942e6e545322aad8a64842
111105
TeadsAdMobAdapter: c7110f4568185364ecba302b1eefb86145a9c8d3
112106
TeadsMoPubAdapter: 5f7c0470ee09d4dc42153de705400b8f3a894ddc
113107
TeadsSASAdapter: d1ff4f7b883628f5bb26a401443f2a57870918a3
114108
TeadsSDK: a6d99fcfc49ed0d4ae5715bc50149ecd83ce8f25
115109

116-
PODFILE CHECKSUM: 720a9592df375ce23cb9532bc57a391a9ba02e91
110+
PODFILE CHECKSUM: 1d3369f37f269eccfc0630fab866604fff5c7e2c
117111

118-
COCOAPODS: 1.10.2
112+
COCOAPODS: 1.11.2

TeadsSampleApp.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,11 +621,11 @@
621621
"${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
622622
"${BUILT_PRODUCTS_DIR}/mopub-ios-sdk/MoPubSDK.framework",
623623
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
624-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/SCSCoreKit/SCSCoreKit.framework/SCSCoreKit",
625-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/SASDisplayKit/SASDisplayKit.framework/SASDisplayKit",
626-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/TeadsSDK/TeadsSDK.framework/TeadsSDK",
627-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OMSDK_Teadstv/OMSDK_Teadstv.framework/OMSDK_Teadstv",
628-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OMSDK_Mopub/OMSDK_Mopub.framework/OMSDK_Mopub",
624+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Smart-Core-SDK/SCSCoreKit.framework/SCSCoreKit",
625+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Smart-Display-SDK/SASDisplayKit.framework/SASDisplayKit",
626+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/TeadsSDK/Core/TeadsSDK.framework/TeadsSDK",
627+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/TeadsSDK/Core/OMSDK_Teadstv.framework/OMSDK_Teadstv",
628+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/mopub-ios-sdk/Core/OMSDK_Mopub.framework/OMSDK_Mopub",
629629
);
630630
name = "[CP] Embed Pods Frameworks";
631631
outputPaths = (

TeadsSampleAppUITests/TeadsSampleAppUITests.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,23 @@ class TeadsSampleAppUITests: XCTestCase {
3030
XCTAssert(player.frame.height > 80)
3131
}
3232

33+
func testInReadIntegrationVerticalInScrollView() throws {
34+
let app = XCUIApplication()
35+
app.launch()
36+
let collectionViewsQuery = app.collectionViews
37+
app.collectionViews.cells.staticTexts["Vertical"].tap()
38+
collectionViewsQuery.otherElements.containing(.staticText, identifier: "Creatives").element.swipeUp()
39+
app.collectionViews.cells.staticTexts["ScrollView"].tap()
40+
let scrollViewsQuery = XCUIApplication().scrollViews.firstMatch
41+
let articleElement = scrollViewsQuery.otherElements.containing(.staticText, identifier:"ARTICLE").element
42+
let elementsQuery = scrollViewsQuery.otherElements
43+
while !elementsQuery.otherElements["teads-player"].exists {
44+
articleElement.swipeUp()
45+
}
46+
let player = elementsQuery.otherElements["teads-player"]
47+
XCTAssert(player.frame.height > 80)
48+
}
49+
50+
3351
}
52+

0 commit comments

Comments
 (0)