onboarding: Suggest first post during onboarding
Testing of standard flow ------------------------ PASS Device: iPhone 14 Pro simulator iOS: 17.0 Damus: This commit Steps: 1. Delete and reinstall Damus 2. Go through onboarding until suggested users appear 3. Click "continue". Should slide into the post view. PASS 4. Post view should look similar to the Figma design file, but with examples as placeholders. PASS 5. Examples should switch every 3 seconds. PASS 6. Typing a first character causes the #introductions hashtag to be automatically added. PASS 7. Uploading an image makes progress view show up and not break layout. PASS 8. Clicking on "post" should post this note and dismiss onboarding view. PASS Testing of other flows ---------------------- PASS Device: iPhone 14 Pro simulator iOS: 17.0 Damus: This commit Special remark: Made local change to always show the onboarding suggestions, and speed up testing Coverage: 1. Clicking "skip" on suggested users view will skip into the post view. PASS 2. Clicking "cancel" on post view and then going to the normal post view reveals a blank draft. PASS 3. Clicking "cancel" dismisses onboarding view and does not post anything. PASS 4. Normal post view looks normal (not broken). PASS 5. Changing initial suggested post during onboarding, cancelling the post, and then re-entering normal post view reveals the draft with user modifications. PASS Changelog-Added: Suggest first post during onboarding Closes: https://github.com/damus-io/damus/issues/1338 Signed-off-by: Daniel D’Aquino <daniel@daquino.me> Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
7c98489904
commit
bf43842590
@@ -35,6 +35,7 @@ final class PostViewTests: XCTestCase {
|
||||
let textEditorView = TextViewWrapper(
|
||||
attributedText: .constant(NSMutableAttributedString(string: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")),
|
||||
textHeight: textHeightBinding,
|
||||
initialTextSuffix: nil,
|
||||
cursorIndex: 9,
|
||||
updateCursorPosition: { _ in return }
|
||||
).environmentObject(tagModel)
|
||||
@@ -157,7 +158,7 @@ func checkMentionLinkEditorHandling(
|
||||
if let expectedNewCursorIndex {
|
||||
XCTAssertEqual(newCursorIndex, expectedNewCursorIndex)
|
||||
}
|
||||
})
|
||||
}, initialTextSuffix: nil)
|
||||
let textView = UITextView()
|
||||
textView.attributedText = content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user