Let’s say I have two callbacks which should come in a certain order. I have a test with `wait` where I enforce order of fulfilled expectations. It fails right now. I’d like to mark the failing order as a known issue with `XCTExpectFailure` or similar, is it possible to do so? @swift #swift #swiftlang
@Gray_Wind 🤔 maybe I misunderstood, but I think you could have an array of actions, then trigger each action and append it to that array. Then expect failure when B comes before A?

@cocoataster wait(for:enforceOrder:) does it for me https://developer.apple.com/documentation/xctest/xctwaiter/4116357-wait

But I had a known issue in the code and I have a test which covers it, so I want to mark it as expected with https://developer.apple.com/documentation/xctest/expected_failures until I fix it.

So I wonder if it possible to do so using standard tools.

wait(for:enforceOrder:) | Apple Developer Documentation

Waits on a group of expectations optionally enforcing their order of fulfillment.

Apple Developer Documentation
@Gray_Wind thanks for the clarification! 😬 Don’t know about this tbh… 😔 looks like you need a PRO in testing. I think Jon @qcoding might be able to help here 👀 Haven’t finished his book yet but it’s great stuff!