Skip to content

Commit

Permalink
Merge branch 'main' into jjackson/crcid-send-receive-support
Browse files Browse the repository at this point in the history
* main:
  Disable flaky tests (#1142)
  Add force old app delegate flag (#1141)
  • Loading branch information
samsymons committed Dec 19, 2024
2 parents 88449bb + f287e30 commit bcb85ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public enum PrivacyFeature: String {
case textZoom
case adAttributionReporting
case experimentTest
case forceOldAppDelegate
}

/// An abstraction to be implemented by any "subfeature" of a given `PrivacyConfiguration` feature.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ class DistributedNavigationDelegateTests: DistributedNavigationDelegateTestsBase
}

func testOpenAboutBlankInNewWindow() throws {
throw XCTSkip("Flaky, see https://app.asana.com/0/1200194497630846/1205018266972898/f")

navigationDelegate.setResponders(.strong(NavigationResponderMock(defaultHandler: { _ in })))
navigationDelegateProxy.finishEventsDispatchTime = .instant

Expand Down Expand Up @@ -1633,6 +1635,8 @@ class DistributedNavigationDelegateTests: DistributedNavigationDelegateTestsBase
}

func testWhenWebContentProcessIsTerminated_webProcessDidTerminateAndNavigationDidFailReceived() throws {
throw XCTSkip("Flaky, see https://app.asana.com/0/1200194497630846/1205018266972898/f")

navigationDelegate.setResponders(.strong(NavigationResponderMock(defaultHandler: { _ in })))

responder(at: 0).onNavigationResponse = { [unowned webView=withWebView(do: { $0 })] _ in
Expand Down
4 changes: 4 additions & 0 deletions Tests/NavigationTests/NavigationRedirectsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@ class NavigationRedirectsTests: DistributedNavigationDelegateTestsBase {
}

func testWhenServerRedirectIsInterruptedThenDidFailProvisionalIsCalled() throws {
throw XCTSkip("Flaky, see https://app.asana.com/0/1200194497630846/1205018266972898/f")

navigationDelegate.setResponders(.strong(NavigationResponderMock(defaultHandler: { _ in })))

server.middleware = [{ [urls, data] request in
Expand Down Expand Up @@ -1050,6 +1052,8 @@ class NavigationRedirectsTests: DistributedNavigationDelegateTestsBase {
}

func testWhenCustomSchemeNavigationIsInterruptedByNewRequestThenDidFailIsCalled() throws {
throw XCTSkip("Flaky, see https://app.asana.com/0/1200194497630846/1205018266972898/f")

navigationDelegate.setResponders(.strong(NavigationResponderMock(defaultHandler: { _ in })))

let lock = NSLock()
Expand Down

0 comments on commit bcb85ec

Please sign in to comment.