feat: replace the preset gallery with original schedules
Swap the six suggested rules for an original set so the preset offerings are OpenAppLock's own: - Focus Time: Morning Focus (08:00-11:30 weekdays), Deep Work (13:30-16:00 weekdays) - Rest & Recharge: Evening Reset (21:00-23:00), Lights Out (23:00-06:30, crosses midnight) - Healthy Balance: Family Dinner (18:00-19:30), Screen-Free Sunday (09:00-20:00, Sundays) Update the spec preset gallery (sections 1, 3.3, 4) and the preset unit/UI tests to the new ids, names, and times. Build green; the preset draft unit test and the two preset UI tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -37,11 +37,11 @@ final class RuleCreationUITests: XCTestCase {
|
||||
app.goToRulesTab()
|
||||
app.buttons["newRuleButton"].waitToAppear().tap()
|
||||
|
||||
app.buttons["preset-work-time"].waitToAppear().tap()
|
||||
XCTAssertEqual(app.staticTexts["ruleEditorTitle"].waitToAppear().label, "Work Time")
|
||||
app.buttons["preset-morning-focus"].waitToAppear().tap()
|
||||
XCTAssertEqual(app.staticTexts["ruleEditorTitle"].waitToAppear().label, "Morning Focus")
|
||||
|
||||
app.buttons["commitRuleButton"].waitToAppear().tap()
|
||||
app.buttons["ruleCard-Work Time"].waitToAppear()
|
||||
app.buttons["ruleCard-Morning Focus"].waitToAppear()
|
||||
}
|
||||
|
||||
func testRenameRuleInEditor() throws {
|
||||
@@ -190,8 +190,8 @@ final class RuleCreationUITests: XCTestCase {
|
||||
app.buttons["ruleKind-schedule"].waitToAppear()
|
||||
XCTAssertTrue(app.buttons["ruleKind-timeLimit"].exists)
|
||||
XCTAssertTrue(app.buttons["ruleKind-openLimit"].exists)
|
||||
XCTAssertTrue(app.staticTexts["Get More Done"].exists)
|
||||
XCTAssertTrue(app.buttons["preset-work-time"].exists)
|
||||
XCTAssertTrue(app.buttons["preset-laser-focus"].exists)
|
||||
XCTAssertTrue(app.staticTexts["Focus Time"].exists)
|
||||
XCTAssertTrue(app.buttons["preset-morning-focus"].exists)
|
||||
XCTAssertTrue(app.buttons["preset-deep-work"].exists)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user