mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
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
This commit is contained in:
@@ -73,10 +73,12 @@ describe("RightPanel", () => {
|
|||||||
cy.openRoomSettings();
|
cy.openRoomSettings();
|
||||||
|
|
||||||
// Set a local room address
|
// Set a local room address
|
||||||
cy.findByTestId("local-address-fieldset").within(() => {
|
cy.contains(".mx_SettingsFieldset", "Local Addresses").within(() => {
|
||||||
cy.get(".mx_AliasSettings_localAddresses").click();
|
cy.findByRole("textbox").type(ROOM_ADDRESS_LONG);
|
||||||
cy.findByLabelText("Room address").type(ROOM_ADDRESS_LONG);
|
|
||||||
cy.findByRole("button", { name: "Add" }).click();
|
cy.findByRole("button", { name: "Add" }).click();
|
||||||
|
cy.findByText(`#${ROOM_ADDRESS_LONG}:localhost`)
|
||||||
|
.should("have.class", "mx_EditableItem_item")
|
||||||
|
.should("exist");
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.closeDialog();
|
cy.closeDialog();
|
||||||
|
|||||||
Reference in New Issue
Block a user