Skip to content

XCTests and XCUITests failing on webview_flutter_wkwebview package iOS 17 XCode RC1 #134972

@rzambroni

Description

@rzambroni

Is there an existing issue for this?

Steps to reproduce

Install XCode RC1 and iOS 17.0 Simulator

git clone GitHub - flutter/packages: A collection of useful packages maintained by the Flutter team

cd packages

cd web_view_flutter/webview_flutter_wkwebview/example/ios

flutter pub get

pod install

Run the test using command (Replace $simulator_id):

xcodebuild test -workspace Runner.xcworkspace -scheme Runner \

-destination 'platform=iOS Simulator,id=$simulator_id' > logs.txt

9- Alternatively, you can run test inside Xcode in the Test Navigator

Expected results

Running all tests should succeed

Actual results

image

[Screenshot 1]: Xcode test navigator showing failing test: testLoadRequestWithInvalidUrl

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
error: -[FWFWebViewHostApiTests testLoadRequestWithInvalidUrl] : loadRequest:<OCMAnyConstraint: 0x600000b41910>: explicitly disallowed method invoked: loadRequest:<NSMutableURLRequest: 0x600000b476e0> { URL: %25invalidUrl%25 } (NSInternalInconsistencyException)

Test Case '-[FWFWebViewHostApiTests testLoadRequestWithInvalidUrl]' failed (0.049 seconds).

Test Suite 'FWFWebViewHostApiTests' failed at 2023-09-18 16:07:37.317.

Executed 1 test, with 1 failure (1 unexpected) in 0.049 (0.050) seconds

Test Suite 'RunnerTests.xctest' failed at 2023-09-18 16:07:37.318.

Executed 1 test, with 1 failure (1 unexpected) in 0.049 (0.051) seconds

Test Suite 'Selected tests' failed at 2023-09-18 16:07:37.318.

Executed 1 test, with 1 failure (1 unexpected) in 0.049 (0.053) seconds

Flutter Doctor output

Doctor output
[✓] Flutter (Channel master, 3.14.0-14.0.pre.333, on macOS 13.5.2 22G91 darwin-x64, locale en-UY)

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)

[✓] Chrome - develop for the web

[✓] VS Code (version 1.82.2)

[✓] Connected device (3 available)

[✓] Network resources

Metadata

Metadata

Labels

P2Important issues not at the top of the work listfrom: manual-qaIssue caught from manual QA processp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions