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

Move editing test into thread.spec.ts #3408

Merged
merged 5 commits into from
May 25, 2023

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented May 24, 2023

This test didn't belong with the timeline set tests.

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 added the T-Task Tasks for the team like planning label May 24, 2023
@andybalaam andybalaam marked this pull request as ready for review May 24, 2023 23:46
@andybalaam andybalaam requested a review from a team as a code owner May 24, 2023 23:46
@andybalaam andybalaam requested review from germain-gg and artcodespace and removed request for a team May 24, 2023 23:46
Base automatically changed from andybalaam/fix-test-for-edits to develop May 25, 2023 12:49
@andybalaam andybalaam enabled auto-merge May 25, 2023 13:14
@andybalaam andybalaam added this pull request to the merge queue May 25, 2023
Merged via the queue into develop with commit 26736b6 May 25, 2023
@andybalaam andybalaam deleted the andybalaam/move-thread-edit-test branch May 25, 2023 13:33
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