            waitForTransition(of: .morningGoals, toIsVisible: false)
        }
        let goalsBar = group("goal right on border") {() -> XCUIElement in
            setTimeUtc(h: 08, m: 00)
            let ptn = wait(for: .ptn)
            let goalsBar = findGoalsBar(within: ptn)
            goalsBar.buttons["Add new goal"].click()
            goalsBar.children(matching: .textField).element.typeText("goal 2\r")
            return goalsBar
        }
        group("goal right after grace period") {
            setTimeUtc(h: 08, m: 00, s: 01)