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

Unit test CreateRoomDialog #11121

Merged
merged 4 commits into from
Jun 21, 2023
Merged

Unit test CreateRoomDialog #11121

merged 4 commits into from
Jun 21, 2023

Conversation

kerryarchibald
Copy link
Contributor

@kerryarchibald kerryarchibald commented Jun 21, 2023

Add test coverage before making changes in #11120

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

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

@kerryarchibald kerryarchibald added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jun 21, 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.

Otherwise, LGTM!

getRoomIdForAlias: jest.fn().mockRejectedValue({ errcode: "M_NOT_FOUND" }),
});

const getE2eeEnableToggle = () => screen.getByTestId("enableE2ee");
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use getByLabelText here instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! Thanks for the early morning review :-)

@kerryarchibald kerryarchibald added this pull request to the merge queue Jun 21, 2023
Merged via the queue into develop with commit a4cf2af Jun 21, 2023
20 checks passed
@kerryarchibald kerryarchibald deleted the kerry/test-createroom branch June 21, 2023 08:50
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