From 21b9dafb45f50c8e4cdffc637f6d563fbc169a1d Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 5 Jun 2023 21:11:12 +0000 Subject: [PATCH] Take a Percy snapshot of SpaceSetupPrivateInvite (#11010) --- cypress/e2e/spaces/spaces.spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/spaces/spaces.spec.ts b/cypress/e2e/spaces/spaces.spec.ts index 47228e2bcd..13fef2a5b5 100644 --- a/cypress/e2e/spaces/spaces.spec.ts +++ b/cypress/e2e/spaces/spaces.spec.ts @@ -140,12 +140,9 @@ describe("Spaces", () => { cy.findByPlaceholderText("Support").type("Projects"); cy.findByRole("button", { name: "Continue" }).click(); + cy.get(".mx_SpaceRoomView h1").findByText("Invite your teammates"); cy.get(".mx_SpaceRoomView").percySnapshotElement("Space - 'Invite your teammates' dialog"); - - cy.get(".mx_SpaceRoomView").within(() => { - cy.get("h1").findByText("Invite your teammates"); - cy.findByRole("button", { name: "Skip for now" }).click(); - }); + cy.findByRole("button", { name: "Skip for now" }).click(); // Assert rooms exist in the room list cy.findByRole("treeitem", { name: "General" }).should("exist");