Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Cypress test for unthreaded receipts not clobbering main thread ones #10769

Merged
merged 2 commits into from
May 3, 2023

Conversation

andybalaam
Copy link
Contributor

@andybalaam andybalaam commented May 2, 2023

Test for element-hq/element-web#24629


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

@andybalaam andybalaam added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label May 2, 2023
Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Comment on lines +117 to +119
// And we persuade the app to persist its state to indexeddb by reloading and waiting
cy.reload();
cy.findByLabelText(`${selectedRoomName}`).should("exist");
Copy link
Contributor

Choose a reason for hiding this comment

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

How does that piece of code persuade the accumulator to persist its state?
Is there a condition somewhere that flushes data to idb before Element is closed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems to flush immediately after reload. I don't know why 🤷

@andybalaam andybalaam marked this pull request as ready for review May 2, 2023 15:59
@andybalaam andybalaam requested a review from a team as a code owner May 2, 2023 15:59
@andybalaam andybalaam added this pull request to the merge queue May 3, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 3, 2023
@andybalaam andybalaam added this pull request to the merge queue May 3, 2023
Merged via the queue into develop with commit d494b45 May 3, 2023
@andybalaam andybalaam deleted the andybalaam/cypress-test-for-read-receipts branch May 3, 2023 11:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants