// The shell's card of another device asking to be let in (an invented Walk // Mac, -shell-card-seed YES) stands above Days and pushes it down: Show and // More stay clear of it and can be touched, and the card takes at most half // the screen with Refuse whole, at the default size and the largest. The // card is never tapped. import XCTest final class DaysShellCardTests: DaysUITestCase { @MainActor private func walk(_ extra: [String]) { let app = DaysUI.launch(ShellCard.seed + extra) let show = DaysUI.filter(app) XCTAssertTrue(show.waitForExistence(timeout: 60), "Days came in") ShellCard.fits(app) ShellCard.clear(app, show, "Show") ShellCard.clear(app, DaysUI.button(app, "More: settings"), "More") } // RULE: with the card standing, Days' Show and More are clear of it and can be touched. @MainActor func testTheCardPushesDaysDown() { walk([]) } // RULE: at the largest text the card stays within half the screen with Refuse whole, and Days' Show and More are clear of it. @MainActor func testTheCardPushesDaysDownAtTheLargestText() { walk(DaysUI.largestText) } }