Flaky Cypress test - `should handle long room address and long room name` on right-panel.spec.ts (#10835)

* wait for room alias to be set before closing modal

* retrigger sonar
pull/28217/head
Kerry 2023-05-11 14:32:32 +12:00 committed by GitHub
parent a18e66c69b
commit 675756a699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -73,10 +73,12 @@ describe("RightPanel", () => {
cy.openRoomSettings();
// Set a local room address
cy.findByTestId("local-address-fieldset").within(() => {
cy.get(".mx_AliasSettings_localAddresses").click();
cy.findByLabelText("Room address").type(ROOM_ADDRESS_LONG);
cy.contains(".mx_SettingsFieldset", "Local Addresses").within(() => {
cy.findByRole("textbox").type(ROOM_ADDRESS_LONG);
cy.findByRole("button", { name: "Add" }).click();
cy.findByText(`#${ROOM_ADDRESS_LONG}:localhost`)
.should("have.class", "mx_EditableItem_item")
.should("exist");
});
cy.closeDialog();