You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-29 15:23:11 +03:00
Use Intl for names of languages (#11427)
* Use Intl for names of languages * Tweak Intl language style from "American English" -> "US English" * Update tests * Fix tests * Consolidate languageHandler-test files * Improve coverage * Consistent casing for languages in dropdown * Update LanguageDropdown.tsx * Delint & update snapshot * Fix tests * Improve coverage `of` will fallback to the given code with fallback=code (default)
This commit is contained in:
committed by
GitHub
parent
3684c77cfe
commit
4de315fb6c
@@ -133,10 +133,12 @@ describe("General user settings tab", () => {
|
||||
cy.findByRole("button", { name: "Language Dropdown" }).click();
|
||||
|
||||
// Assert that the default option is rendered and highlighted
|
||||
cy.findByRole("option", { name: /Bahasa Indonesia/ })
|
||||
cy.findByRole("option", { name: /Albanian/ })
|
||||
.should("be.visible")
|
||||
.should("have.class", "mx_Dropdown_option_highlight");
|
||||
|
||||
cy.findByRole("option", { name: /Deutsch/ }).should("be.visible");
|
||||
|
||||
// Click again to close the dropdown
|
||||
cy.findByRole("button", { name: "Language Dropdown" }).click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user