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

Simplify thread-editing test #3409

Merged
merged 14 commits into from
May 25, 2023
Merged

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented May 24, 2023

I strongly recommend reviewing commit by commit.

This simplifies a test I am about to make a second version of.

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 changed the base branch from develop to andybalaam/move-thread-edit-test May 24, 2023 23:46
@andybalaam andybalaam marked this pull request as ready for review May 25, 2023 00:01
@andybalaam andybalaam requested a review from a team as a code owner May 25, 2023 00:01
@andybalaam andybalaam requested review from dbkr and justjanne and removed request for a team May 25, 2023 00:01
Base automatically changed from andybalaam/move-thread-edit-test to develop May 25, 2023 13:33
@andybalaam andybalaam enabled auto-merge May 25, 2023 13:58
@andybalaam andybalaam added this pull request to the merge queue May 25, 2023
Merged via the queue into develop with commit 48b60bb May 25, 2023
@andybalaam andybalaam deleted the andybalaam/simplify-thread-edit-test branch May 25, 2023 14:28
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