Skip to content

Commit

Permalink
Merge pull request #262 from afterpay/feat/cash-app-obj-c-wrapper-EIT…
Browse files Browse the repository at this point in the history
…-4059

feat(obj-c): add cash app methods (EIT-4059)
  • Loading branch information
ScottAntonacAP authored Apr 25, 2024
2 parents 02e2766 + 308d270 commit 40b99db
Show file tree
Hide file tree
Showing 3 changed files with 372 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Test

env:
afterpay-scheme: Afterpay
DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer

on:
push:
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: macos-latest

env:
destination: platform=iOS Simulator,name=iPhone 15,OS=17.4
destination: platform=iOS Simulator,name=iPhone 14,OS=16.4
example-scheme: Example
example-ui-test-scheme: ExampleUITests
workspace: Afterpay.xcworkspace
Expand Down
5 changes: 3 additions & 2 deletions Example/ExampleUITests/ExampleUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ final class ExampleUITests: XCTestCase {
func testTokenlessWidgetAppears() throws {
app.buttons["Tokenless…"].tap()

_ = app.webViews.staticTexts.firstMatch.waitForExistence(timeout: 30)
_ = app.webViews.staticTexts.firstMatch.waitForExistence(timeout: 60)

let webViewText = app.webViews.staticTexts.firstMatch

Expand All @@ -56,7 +56,8 @@ final class ExampleUITests: XCTestCase {
textField.typeText("444")
app.buttons["Update"].tap()

XCTAssertTrue(webViewText.label.contains(#"{"amount":"444","currency":"USD"}"#))
XCTAssertTrue(webViewText.label.contains(#""amount":"444""#))
XCTAssertTrue(webViewText.label.contains(#""currency":"USD""#))
}

}
Loading

0 comments on commit 40b99db

Please sign in to comment.