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

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

Merged
merged 3 commits into from
May 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cypress/e2e/right-panel/right-panel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down