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

Commit

Permalink
Flaky Cypress test - `should handle long room address and long room n…
Browse files Browse the repository at this point in the history
…ame` on right-panel.spec.ts (#10835)

* wait for room alias to be set before closing modal

* retrigger sonar
  • Loading branch information
Kerry authored May 11, 2023
1 parent a18e66c commit 675756a
Showing 1 changed file with 5 additions and 3 deletions.
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

0 comments on commit 675756a

Please sign in to comment.