Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITests #2372

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

UITests #2372

wants to merge 9 commits into from

Conversation

Amzd
Copy link
Collaborator

@Amzd Amzd commented Nov 2, 2024

This PR adds a UITest for the chat view controller. There is a couple TODO comments that can maybe be fixed but I don't think they are blocking.

I don't know how to handle xcproj changes, they are a mystery to me.

Comment on lines +64 to +71
if CommandLine.arguments.contains("--UITests") {
// TODO: FIX
// FIXME: I think this is a bug but sendMessage does not publish the DC_EVENT_MSGS_CHANGED event in UITests. Probably because the message is not actually sent due to it not being a real, functioning account?
NotificationCenter.default.post(name: Event.messagesChanged, object: nil, userInfo: [
"message_id": message.id,
"chat_id": chatId,
])
}
Copy link
Collaborator Author

@Amzd Amzd Nov 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure where to report this but I think this is a bug in core but not one that would affect any real users, just UITests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant