feat: apply pink Opal design with reactive square persona
This commit is contained in:
1 parent
5b41b3924a
commit
74d2b63614
8 files changed
+199
-57
No files matched your search
@@ -15,6 +15,7 @@ final class VoiceUITests: XCTestCase {
|
||||
app.launchArguments.append("--ui-fixtures")
|
||||
app.launch()
|
||||
XCTAssertTrue(app.staticTexts["Help me plan a quiet weekend."].waitForExistence(timeout: 10))
|
||||
app.buttons["Account"].tap()
|
||||
app.buttons["Sign out"].tap()
|
||||
XCTAssertTrue(app.secureTextFields["Password"].waitForExistence(timeout: 10))
|
||||
let username = app.textFields["Username"]
|
||||
@@ -132,6 +133,23 @@ final class VoiceUITests: XCTestCase {
|
||||
capture("Accessibility text size")
|
||||
}
|
||||
|
||||
func testOpalPromptPreparesEditableDraftWithoutConnecting() {
|
||||
app.launch()
|
||||
XCTAssertTrue(app.staticTexts["A little room for you,"].waitForExistence(timeout: 10))
|
||||
app.buttons["Explore an idea"].tap()
|
||||
let draft = app.textFields["Message Hope"]
|
||||
XCTAssertTrue(draft.waitForExistence(timeout: 5))
|
||||
XCTAssertEqual(draft.value as? String, "Help me explore an idea.")
|
||||
draft.tap()
|
||||
draft.typeText(String(repeating: XCUIKeyboardKey.delete.rawValue, count: "Help me explore an idea.".count))
|
||||
XCTAssertTrue(draft.exists)
|
||||
draft.typeText("My own thought")
|
||||
XCTAssertEqual(draft.value as? String, "My own thought")
|
||||
XCTAssertTrue(app.buttons["Start chatting"].exists)
|
||||
XCTAssertTrue(app.staticTexts["Your microphone stays off."].exists)
|
||||
capture("Opal editable prompt")
|
||||
}
|
||||
|
||||
private func capture(_ name: String) {
|
||||
let attachment = XCTAttachment(screenshot: app.screenshot())
|
||||
attachment.name = name
|
||||
|
||||
Reference in new issue
Block a user