Skip to content

Commit a48327d

Browse files
committed
fixing ui tests
1 parent c191389 commit a48327d

File tree

4 files changed

+23
-27
lines changed

4 files changed

+23
-27
lines changed

Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ target 'TeadsSampleApp' do
1313
pod 'TeadsAdMobAdapter', '~> 5.0'
1414
pod 'TeadsAppLovinAdapter', '~> 5.0'
1515

16-
1716
pod 'SwiftFormat/CLI'
1817
end

Podfile.lock

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- AppLovinSDK (11.4.3)
3-
- Google-Mobile-Ads-SDK (9.9.0):
2+
- AppLovinSDK (11.4.4)
3+
- Google-Mobile-Ads-SDK (9.10.0):
44
- GoogleAppMeasurement (< 10.0, >= 7.0)
55
- GoogleUserMessagingPlatform (>= 1.1)
66
- GoogleAppMeasurement (9.5.0):
@@ -50,7 +50,7 @@ PODS:
5050
- Smart-Core-SDK (7.18.1)
5151
- Smart-Display-SDK (7.18.0):
5252
- Smart-Core-SDK (~> 7.18)
53-
- SwiftFormat/CLI (0.49.13)
53+
- SwiftFormat/CLI (0.49.18)
5454
- TeadsAdMobAdapter (5.0.20):
5555
- Google-Mobile-Ads-SDK (>= 8.0)
5656
- TeadsSDK (= 5.0.20)
@@ -66,10 +66,10 @@ PODS:
6666

6767
DEPENDENCIES:
6868
- SwiftFormat/CLI
69-
- TeadsAdMobAdapter (from `./`)
70-
- TeadsAppLovinAdapter (from `./`)
71-
- TeadsSASAdapter (from `./`)
72-
- TeadsSDK (from `./`)
69+
- TeadsAdMobAdapter (~> 5.0)
70+
- TeadsAppLovinAdapter (~> 5.0)
71+
- TeadsSASAdapter (~> 5.0)
72+
- TeadsSDK (~> 5.0)
7373

7474
SPEC REPOS:
7575
trunk:
@@ -83,33 +83,27 @@ SPEC REPOS:
8383
- Smart-Core-SDK
8484
- Smart-Display-SDK
8585
- SwiftFormat
86-
87-
EXTERNAL SOURCES:
88-
TeadsAdMobAdapter:
89-
:path: "./"
90-
TeadsAppLovinAdapter:
91-
:path: "./"
92-
TeadsSASAdapter:
93-
:path: "./"
94-
TeadsSDK:
95-
:path: "./"
86+
- TeadsAdMobAdapter
87+
- TeadsAppLovinAdapter
88+
- TeadsSASAdapter
89+
- TeadsSDK
9690

9791
SPEC CHECKSUMS:
98-
AppLovinSDK: 221dfbdff620be0ff227ed5b018b97b1f3d15713
99-
Google-Mobile-Ads-SDK: 8822993da940ab920bad131b5bffce7eb3f62c6a
92+
AppLovinSDK: 347d9d039d499acbc3c3f616c669d010b2269334
93+
Google-Mobile-Ads-SDK: eb398023f0d97cdd259b171052f1eb433de00c87
10094
GoogleAppMeasurement: 6ee231473fbd75c11221dfce489894334024eead
10195
GoogleUserMessagingPlatform: ab890ce5f6620f293a21b6bdd82e416a2c73aeca
10296
GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
10397
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
10498
PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
10599
Smart-Core-SDK: 7f2b321a2f8a4233481db716a30a2715d2fafbd1
106100
Smart-Display-SDK: 83450dd0befaa55f08779a8c67c30bd6d8e80ee9
107-
SwiftFormat: 53864d9acbae3a954eb413736729500fe7051435
101+
SwiftFormat: 2402d29b26746f169cce5454d5af88314cbb2e35
108102
TeadsAdMobAdapter: 84d7a53f5a3d5411b6710bf3741f6ebf1598b0ee
109103
TeadsAppLovinAdapter: 47c7a5434a409710307242c33f471827dea70c11
110104
TeadsSASAdapter: 16ce14539cec78eb1a6b0b12bc491c31cfca316c
111105
TeadsSDK: 9b1604339860b937a623e38c1a53ed42d38260c5
112106

113-
PODFILE CHECKSUM: 55210a42754a193fd1cc6ffc7f79bbae342aea73
107+
PODFILE CHECKSUM: beb81518548cc9368141d14b897874d07ca0e6a7
114108

115109
COCOAPODS: 1.11.2

TeadsSampleApp.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@
685685
);
686686
inputPaths = (
687687
"${PODS_ROOT}/Target Support Files/Pods-TeadsSampleApp/Pods-TeadsSampleApp-resources.sh",
688-
"${PODS_ROOT}/AppLovinSDK/applovin-ios-sdk-11.4.3/AppLovinSDKResources.bundle",
688+
"${PODS_ROOT}/AppLovinSDK/applovin-ios-sdk-11.4.4/AppLovinSDKResources.bundle",
689689
);
690690
name = "[CP] Copy Pods Resources";
691691
outputPaths = (

TeadsSampleAppUITests/TeadsSampleAppUITests.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import XCTest
1010

1111
class TeadsSampleAppUITests: XCTestCase {
12+
13+
private let mediaViewIdentifier = "teads-mediaView"
14+
1215
override func setUpWithError() throws {
1316
continueAfterFailure = false
1417
}
@@ -22,10 +25,10 @@ class TeadsSampleAppUITests: XCTestCase {
2225
let scrollViewsQuery = XCUIApplication().scrollViews.firstMatch
2326
let articleElement = scrollViewsQuery.otherElements.containing(.staticText, identifier: "ARTICLE").element
2427
let elementsQuery = scrollViewsQuery.otherElements
25-
while !elementsQuery.otherElements["teads-player"].exists {
28+
while !elementsQuery.otherElements[mediaViewIdentifier].exists {
2629
articleElement.swipeUp()
2730
}
28-
let player = elementsQuery.otherElements["teads-player"]
31+
let player = elementsQuery.otherElements[mediaViewIdentifier]
2932
XCTAssert(player.frame.height > 80)
3033
}
3134

@@ -39,10 +42,10 @@ class TeadsSampleAppUITests: XCTestCase {
3942
let scrollViewsQuery = XCUIApplication().scrollViews.firstMatch
4043
let articleElement = scrollViewsQuery.otherElements.containing(.staticText, identifier: "ARTICLE").element
4144
let elementsQuery = scrollViewsQuery.otherElements
42-
while !elementsQuery.otherElements["teads-player"].exists {
45+
while !elementsQuery.otherElements[mediaViewIdentifier].exists {
4346
articleElement.swipeUp()
4447
}
45-
let player = elementsQuery.otherElements["teads-player"]
48+
let player = elementsQuery.otherElements[mediaViewIdentifier]
4649
XCTAssert(player.frame.height > 80)
4750
}
4851
}

0 commit comments

Comments
 (0)