Skip to content
Repos

DevPlaceApp

Plain text 953 B39 lines Opens in site

Directory Raw Download

# screen: post
# Post detail: body, poll, comments tree, bottom composer, validation, submit, delete confirmation.
wait 1.0
expect-text A post with several attachments
expect-text Comments
expect-text Reload
expect-text What's your preferred concurrency style in Swift today?
expect-text 50 votes
expect-text Reply to post
# poll vote is optimistic: a new choice adds one vote, tapping it again removes it
tap-text async/await
wait 0.3
expect-text 51 votes
tap-text async/await
wait 0.3
expect-text 50 votes
# reload keeps the screen
tap-text Reload
wait 0.5
expect-text Comments
# bottom composer: submit needs 3 characters
scroll 200 400 6000
wait 0.3
tap-text Comment
wait 0.5
expect-text /125,000
scroll 200 400 5000
wait 0.2
type abc
tap-text Submit
wait 1.0
expect-no-text /125,000
# delete of an own comment asks first
tap-text Delete comment
wait 0.3
expect-text Delete this comment?
tap-text Cancel
wait 0.3
expect-no-text Delete this comment?
35.4ms