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

Flaky Jest test: <JoinRuleSettings /> › Restricted rooms › When room does not support restricted rooms › upgrades room when changing join rule to restricted #25625

Closed
richvdh opened this issue Jun 19, 2023 · 6 comments · Fixed by matrix-org/matrix-react-sdk#11715
Labels
A-Developer-Experience O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Low/no impact on users T-Defect Z-Flaky-Test A test is raising false alarms

Comments

@richvdh
Copy link
Member

richvdh commented Jun 19, 2023

https://github.com/matrix-org/matrix-react-sdk/actions/runs/5312529645/jobs/9617152858?pr=11110:

  ● <JoinRuleSettings /> › Restricted rooms › When room does not support restricted rooms › upgrades room when changing join rule to restricted

    expect(element).toBeInTheDocument()

    element could not be found in the document

      201 |
      202 |                 // update spaces
    > 203 |                 expect(await screen.findByText("Updating space...")).toBeInTheDocument();
          |                                                                      ^
      204 |
      205 |                 await flushPromises();
      206 |

      at Object.toBeInTheDocument (test/components/views/settings/JoinRuleSettings-test.tsx:203:70)
@richvdh
Copy link
Member Author

richvdh commented Sep 7, 2023

@andybalaam
Copy link
Contributor

https://github.com/matrix-org/matrix-react-sdk/actions/runs/6234517455/job/16921863815?pr=11612

Technically the test was upgrades room when changing join rule to knock but close enough

@andybalaam
Copy link
Contributor

@richvdh
Copy link
Member Author

richvdh commented Oct 3, 2023

@richvdh
Copy link
Member Author

richvdh commented Oct 3, 2023

@andybalaam
Copy link
Contributor

I can reproduce this locally.

andybalaam added a commit to matrix-org/matrix-react-sdk that referenced this issue Oct 4, 2023
github-merge-queue bot pushed a commit to matrix-org/matrix-react-sdk that referenced this issue Oct 5, 2023
* Don't look for 'Updating space' message in joinrulesettings test

as it may disappear too quickly for us to see.

Fixes element-hq/element-web#25625

* Provide mock function to avoid warning in JoinRuleSettings test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Developer-Experience O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Tolerable Low/no impact on users T-Defect Z-Flaky-Test A test is raising false alarms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants