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

Fix an existing test for editing messages in threads #3407

Merged
merged 2 commits into from
May 25, 2023

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented May 24, 2023

While attempting to test a new change, I discovered that the test "should allow edits to be added to thread timeline" did not actually fail if its assertions failed. Further, those assertions were incorrect.

So this change fixes the test to create the thread, wait for it to be initialised, and then add events to it. This simplifies the flow and ensures the test fails if something unexpected happens.

Part of element-hq/element-web#10954


This change is marked as an internal change (Task), so will not be included in the changelog.

While attempting to test a new change, I discovered that the test
"should allow edits to be added to thread timeline" did not actually
fail if its assertions failed. Further, those assertions were incorrect.

So this change fixes the test to create the thread, wait for it to be
initialised, and then add events to it. This simplifies the flow and
ensures the test fails if something unexpected happens.
@andybalaam andybalaam force-pushed the andybalaam/fix-test-for-edits branch from eccf498 to 8bfa301 Compare May 24, 2023 22:39
@andybalaam andybalaam marked this pull request as ready for review May 24, 2023 22:39
@andybalaam andybalaam requested a review from a team as a code owner May 24, 2023 22:39
@andybalaam andybalaam requested review from t3chguy and robintown May 24, 2023 22:39
@robintown robintown removed the request for review from t3chguy May 25, 2023 03:45
@andybalaam andybalaam added this pull request to the merge queue May 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch May 25, 2023
@andybalaam andybalaam enabled auto-merge May 25, 2023 12:32
@andybalaam andybalaam added this pull request to the merge queue May 25, 2023
Merged via the queue into develop with commit 056aae8 May 25, 2023
@andybalaam andybalaam deleted the andybalaam/fix-test-for-edits branch May 25, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants