From 5e38b8b3b3d6275c4c8d10c523c04b2b3bdd0404 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 13 Aug 2021 13:29:25 +0100 Subject: [PATCH] try fix tests s'more --- res/css/views/beta/_BetaCard.scss | 1 + test/end-to-end-tests/src/scenarios/spaces.js | 1 + test/end-to-end-tests/src/usecases/create-space.js | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/res/css/views/beta/_BetaCard.scss b/res/css/views/beta/_BetaCard.scss index 2af4e79ecd..0b805f05d6 100644 --- a/res/css/views/beta/_BetaCard.scss +++ b/res/css/views/beta/_BetaCard.scss @@ -113,6 +113,7 @@ $dot-size: 12px; animation: mx_Beta_bluePulse 2s infinite; animation-iteration-count: 20; position: relative; + pointer-events: none; &::after { content: ""; diff --git a/test/end-to-end-tests/src/scenarios/spaces.js b/test/end-to-end-tests/src/scenarios/spaces.js index 9cb5c02d0e..303db65593 100644 --- a/test/end-to-end-tests/src/scenarios/spaces.js +++ b/test/end-to-end-tests/src/scenarios/spaces.js @@ -19,6 +19,7 @@ const { createSpace, inviteSpace } = require("../usecases/create-space"); module.exports = async function spacesScenarios(alice, bob) { console.log(" creating a space for spaces scenarios:"); + await alice.delay(1000); // wait for dialogs to close await setupSpaceUsingAliceAndInviteBob(alice, bob); }; diff --git a/test/end-to-end-tests/src/usecases/create-space.js b/test/end-to-end-tests/src/usecases/create-space.js index b2b58312c0..f1dbfa6b5a 100644 --- a/test/end-to-end-tests/src/usecases/create-space.js +++ b/test/end-to-end-tests/src/usecases/create-space.js @@ -15,8 +15,7 @@ limitations under the License. */ async function openSpaceCreateMenu(session) { - // click on the icon within otherwise puppeteer clicks on the flashing dot instead as its naive - const spaceCreateButton = await session.query('.mx_SpaceButton_new .mx_SpaceButton_icon'); + const spaceCreateButton = await session.query('.mx_SpaceButton_new'); await spaceCreateButton.click(); }