2022-07-20 09:56:52 +02:00
|
|
|
/*
|
2023-02-20 15:46:07 +01:00
|
|
|
Copyright 2022 - 2023 The Matrix.org Foundation C.I.C.
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
2023-01-11 00:29:56 +01:00
|
|
|
import { HomeserverInstance } from "../../plugins/utils/homeserver";
|
2022-07-20 09:56:52 +02:00
|
|
|
import { MatrixClient } from "../../global";
|
2023-03-08 12:23:41 +01:00
|
|
|
import { SettingLevel } from "../../../src/settings/SettingLevel";
|
|
|
|
import { Layout } from "../../../src/settings/enums/Layout";
|
2022-07-20 09:56:52 +02:00
|
|
|
import Chainable = Cypress.Chainable;
|
|
|
|
|
2023-02-27 10:16:49 +01:00
|
|
|
const hidePercyCSS = ".mx_MessageTimestamp, .mx_RoomView_myReadMarker { visibility: hidden !important; }";
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
describe("Polls", () => {
|
2023-01-11 00:29:56 +01:00
|
|
|
let homeserver: HomeserverInstance;
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
type CreatePollOptions = {
|
|
|
|
title: string;
|
|
|
|
options: string[];
|
|
|
|
};
|
|
|
|
const createPoll = ({ title, options }: CreatePollOptions) => {
|
|
|
|
if (options.length < 2) {
|
2022-12-12 12:24:14 +01:00
|
|
|
throw new Error("Poll must have at least two options");
|
2022-07-20 09:56:52 +02:00
|
|
|
}
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_PollCreateDialog").within((pollCreateDialog) => {
|
|
|
|
cy.get("#poll-topic-input").type(title);
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
options.forEach((option, index) => {
|
|
|
|
const optionId = `#pollcreate_option_${index}`;
|
|
|
|
|
|
|
|
// click 'add option' button if needed
|
|
|
|
if (pollCreateDialog.find(optionId).length === 0) {
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_PollCreateDialog_addOption").scrollIntoView().click();
|
2022-07-20 09:56:52 +02:00
|
|
|
}
|
|
|
|
cy.get(optionId).scrollIntoView().type(option);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
cy.get('.mx_Dialog button[type="submit"]').click();
|
|
|
|
};
|
|
|
|
|
|
|
|
const getPollTile = (pollId: string): Chainable<JQuery> => {
|
|
|
|
return cy.get(`.mx_EventTile[data-scroll-tokens="${pollId}"]`);
|
|
|
|
};
|
|
|
|
|
|
|
|
const getPollOption = (pollId: string, optionText: string): Chainable<JQuery> => {
|
2023-02-13 03:55:39 +01:00
|
|
|
return getPollTile(pollId).contains(".mx_PollOption .mx_StyledRadioButton", optionText);
|
2022-07-20 09:56:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const expectPollOptionVoteCount = (pollId: string, optionText: string, votes: number): void => {
|
|
|
|
getPollOption(pollId, optionText).within(() => {
|
2023-02-13 03:55:39 +01:00
|
|
|
cy.get(".mx_PollOption_optionVoteCount").should("contain", `${votes} vote`);
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
const botVoteForOption = (bot: MatrixClient, roomId: string, pollId: string, optionText: string): void => {
|
2022-12-12 12:24:14 +01:00
|
|
|
getPollOption(pollId, optionText).within((ref) => {
|
|
|
|
cy.get('input[type="radio"]')
|
|
|
|
.invoke("attr", "value")
|
|
|
|
.then((optionId) => {
|
2023-01-13 18:02:33 +01:00
|
|
|
// We can't use the js-sdk types for this stuff directly, so manually construct the event.
|
|
|
|
bot.sendEvent(roomId, "org.matrix.msc3381.poll.response", {
|
|
|
|
"m.relates_to": {
|
|
|
|
rel_type: "m.reference",
|
|
|
|
event_id: pollId,
|
|
|
|
},
|
|
|
|
"org.matrix.msc3381.poll.response": {
|
|
|
|
answers: [optionId],
|
|
|
|
},
|
|
|
|
});
|
2022-12-12 12:24:14 +01:00
|
|
|
});
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.window().then((win) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
win.localStorage.setItem("mx_lhs_size", "0"); // Collapse left panel for these tests
|
|
|
|
});
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.startHomeserver("default").then((data) => {
|
|
|
|
homeserver = data;
|
2022-07-20 09:56:52 +02:00
|
|
|
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.initTestUser(homeserver, "Tom");
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.stopHomeserver(homeserver);
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
|
2022-10-18 21:06:43 +02:00
|
|
|
it("should be creatable and votable", () => {
|
2022-07-20 09:56:52 +02:00
|
|
|
let bot: MatrixClient;
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.getBot(homeserver, { displayName: "BotBob" }).then((_bot) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
bot = _bot;
|
|
|
|
});
|
|
|
|
|
|
|
|
let roomId: string;
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.createRoom({}).then((_roomId) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
roomId = _roomId;
|
|
|
|
cy.inviteUser(roomId, bot.getUserId());
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.visit("/#/room/" + roomId);
|
2022-10-07 10:17:08 +02:00
|
|
|
// wait until Bob joined
|
|
|
|
cy.contains(".mx_TextualEvent", "BotBob joined the room").should("exist");
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
cy.openMessageComposerOptions().within(() => {
|
|
|
|
cy.get('[aria-label="Poll"]').click();
|
|
|
|
});
|
|
|
|
|
2023-03-22 09:38:13 +01:00
|
|
|
// Disabled because flaky - see https://github.com/vector-im/element-web/issues/24688
|
|
|
|
//cy.get(".mx_CompoundDialog").percySnapshotElement("Polls Composer");
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
const pollParams = {
|
2022-12-12 12:24:14 +01:00
|
|
|
title: "Does the polls feature work?",
|
2023-01-06 05:11:41 +01:00
|
|
|
// Since we're going to take a screenshot anyways, we include some
|
|
|
|
// non-ASCII characters here to stress test the app's font config
|
|
|
|
// while we're at it.
|
|
|
|
options: ["Yes", "Noo⃐o⃑o⃩o⃪o⃫o⃬o⃭o⃮o⃯", "のらねこ Maybe?"],
|
2022-07-20 09:56:52 +02:00
|
|
|
};
|
|
|
|
createPoll(pollParams);
|
|
|
|
|
|
|
|
// Wait for message to send, get its ID and save as @pollId
|
2022-10-18 18:07:23 +02:00
|
|
|
cy.contains(".mx_RoomView_body .mx_EventTile[data-scroll-tokens]", pollParams.title)
|
2022-12-12 12:24:14 +01:00
|
|
|
.invoke("attr", "data-scroll-tokens")
|
|
|
|
.as("pollId");
|
2022-07-20 09:56:52 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get<string>("@pollId").then((pollId) => {
|
2023-02-27 10:16:49 +01:00
|
|
|
getPollTile(pollId).percySnapshotElement("Polls Timeline tile - no votes", { percyCSS: hidePercyCSS });
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
// Bot votes 'Maybe' in the poll
|
|
|
|
botVoteForOption(bot, roomId, pollId, pollParams.options[2]);
|
|
|
|
|
|
|
|
// no votes shown until I vote, check bots vote has arrived
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_MPollBody_totalVotes").should("contain", "1 vote cast");
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
// vote 'Maybe'
|
2022-12-12 12:24:14 +01:00
|
|
|
getPollOption(pollId, pollParams.options[2]).click("topLeft");
|
2022-07-20 09:56:52 +02:00
|
|
|
// both me and bot have voted Maybe
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[2], 2);
|
|
|
|
|
|
|
|
// change my vote to 'Yes'
|
2022-12-12 12:24:14 +01:00
|
|
|
getPollOption(pollId, pollParams.options[0]).click("topLeft");
|
2022-07-20 09:56:52 +02:00
|
|
|
|
|
|
|
// 1 vote for yes
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[0], 1);
|
|
|
|
// 1 vote for maybe
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[2], 1);
|
|
|
|
|
|
|
|
// Bot updates vote to 'No'
|
|
|
|
botVoteForOption(bot, roomId, pollId, pollParams.options[1]);
|
|
|
|
|
|
|
|
// 1 vote for yes
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[0], 1);
|
|
|
|
// 1 vote for no
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[0], 1);
|
|
|
|
// 0 for maybe
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[2], 0);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2022-10-18 21:06:43 +02:00
|
|
|
it("should be editable from context menu if no votes have been cast", () => {
|
|
|
|
let bot: MatrixClient;
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.getBot(homeserver, { displayName: "BotBob" }).then((_bot) => {
|
2022-10-18 21:06:43 +02:00
|
|
|
bot = _bot;
|
|
|
|
});
|
|
|
|
|
|
|
|
let roomId: string;
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.createRoom({}).then((_roomId) => {
|
2022-10-18 21:06:43 +02:00
|
|
|
roomId = _roomId;
|
|
|
|
cy.inviteUser(roomId, bot.getUserId());
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.visit("/#/room/" + roomId);
|
2022-10-18 21:06:43 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
cy.openMessageComposerOptions().within(() => {
|
|
|
|
cy.get('[aria-label="Poll"]').click();
|
|
|
|
});
|
|
|
|
|
|
|
|
const pollParams = {
|
2022-12-12 12:24:14 +01:00
|
|
|
title: "Does the polls feature work?",
|
|
|
|
options: ["Yes", "No", "Maybe"],
|
2022-10-18 21:06:43 +02:00
|
|
|
};
|
|
|
|
createPoll(pollParams);
|
|
|
|
|
|
|
|
// Wait for message to send, get its ID and save as @pollId
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_RoomView_body .mx_EventTile")
|
|
|
|
.contains(".mx_EventTile[data-scroll-tokens]", pollParams.title)
|
|
|
|
.invoke("attr", "data-scroll-tokens")
|
|
|
|
.as("pollId");
|
2022-10-18 21:06:43 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get<string>("@pollId").then((pollId) => {
|
2022-10-18 21:06:43 +02:00
|
|
|
// Open context menu
|
|
|
|
getPollTile(pollId).rightclick();
|
|
|
|
|
|
|
|
// Select edit item
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_ContextualMenu").within(() => {
|
2022-10-18 21:06:43 +02:00
|
|
|
cy.get('[aria-label="Edit"]').click();
|
|
|
|
});
|
|
|
|
|
|
|
|
// Expect poll editing dialog
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_PollCreateDialog");
|
2022-10-18 21:06:43 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should not be editable from context menu if votes have been cast", () => {
|
|
|
|
let bot: MatrixClient;
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.getBot(homeserver, { displayName: "BotBob" }).then((_bot) => {
|
2022-10-18 21:06:43 +02:00
|
|
|
bot = _bot;
|
|
|
|
});
|
|
|
|
|
|
|
|
let roomId: string;
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.createRoom({}).then((_roomId) => {
|
2022-10-18 21:06:43 +02:00
|
|
|
roomId = _roomId;
|
|
|
|
cy.inviteUser(roomId, bot.getUserId());
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.visit("/#/room/" + roomId);
|
2022-10-18 21:06:43 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
cy.openMessageComposerOptions().within(() => {
|
|
|
|
cy.get('[aria-label="Poll"]').click();
|
|
|
|
});
|
|
|
|
|
|
|
|
const pollParams = {
|
2022-12-12 12:24:14 +01:00
|
|
|
title: "Does the polls feature work?",
|
|
|
|
options: ["Yes", "No", "Maybe"],
|
2022-10-18 21:06:43 +02:00
|
|
|
};
|
|
|
|
createPoll(pollParams);
|
|
|
|
|
|
|
|
// Wait for message to send, get its ID and save as @pollId
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_RoomView_body .mx_EventTile")
|
|
|
|
.contains(".mx_EventTile[data-scroll-tokens]", pollParams.title)
|
|
|
|
.invoke("attr", "data-scroll-tokens")
|
|
|
|
.as("pollId");
|
2022-10-18 21:06:43 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get<string>("@pollId").then((pollId) => {
|
2022-10-18 21:06:43 +02:00
|
|
|
// Bot votes 'Maybe' in the poll
|
|
|
|
botVoteForOption(bot, roomId, pollId, pollParams.options[2]);
|
|
|
|
|
2022-10-20 15:04:05 +02:00
|
|
|
// wait for bot's vote to arrive
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_MPollBody_totalVotes").should("contain", "1 vote cast");
|
2022-10-20 15:04:05 +02:00
|
|
|
|
2022-10-18 21:06:43 +02:00
|
|
|
// Open context menu
|
|
|
|
getPollTile(pollId).rightclick();
|
|
|
|
|
|
|
|
// Select edit item
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_ContextualMenu").within(() => {
|
2022-10-18 21:06:43 +02:00
|
|
|
cy.get('[aria-label="Edit"]').click();
|
|
|
|
});
|
|
|
|
|
|
|
|
// Expect error dialog
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_ErrorDialog");
|
2022-10-18 21:06:43 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should be displayed correctly in thread panel", () => {
|
2022-07-20 09:56:52 +02:00
|
|
|
let botBob: MatrixClient;
|
|
|
|
let botCharlie: MatrixClient;
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.getBot(homeserver, { displayName: "BotBob" }).then((_bot) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
botBob = _bot;
|
|
|
|
});
|
2023-01-11 00:29:56 +01:00
|
|
|
cy.getBot(homeserver, { displayName: "BotCharlie" }).then((_bot) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
botCharlie = _bot;
|
|
|
|
});
|
|
|
|
|
|
|
|
let roomId: string;
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.createRoom({}).then((_roomId) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
roomId = _roomId;
|
|
|
|
cy.inviteUser(roomId, botBob.getUserId());
|
|
|
|
cy.inviteUser(roomId, botCharlie.getUserId());
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.visit("/#/room/" + roomId);
|
2022-10-07 10:17:08 +02:00
|
|
|
// wait until the bots joined
|
|
|
|
cy.contains(".mx_TextualEvent", "and one other were invited and joined").should("exist");
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
cy.openMessageComposerOptions().within(() => {
|
|
|
|
cy.get('[aria-label="Poll"]').click();
|
|
|
|
});
|
|
|
|
|
|
|
|
const pollParams = {
|
2022-12-12 12:24:14 +01:00
|
|
|
title: "Does the polls feature work?",
|
|
|
|
options: ["Yes", "No", "Maybe"],
|
2022-07-20 09:56:52 +02:00
|
|
|
};
|
|
|
|
createPoll(pollParams);
|
|
|
|
|
|
|
|
// Wait for message to send, get its ID and save as @pollId
|
2022-10-18 18:07:23 +02:00
|
|
|
cy.contains(".mx_RoomView_body .mx_EventTile[data-scroll-tokens]", pollParams.title)
|
2022-12-12 12:24:14 +01:00
|
|
|
.invoke("attr", "data-scroll-tokens")
|
|
|
|
.as("pollId");
|
2022-07-20 09:56:52 +02:00
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get<string>("@pollId").then((pollId) => {
|
2022-07-20 09:56:52 +02:00
|
|
|
// Bob starts thread on the poll
|
|
|
|
botBob.sendMessage(roomId, pollId, {
|
|
|
|
body: "Hello there",
|
|
|
|
msgtype: "m.text",
|
|
|
|
});
|
|
|
|
|
|
|
|
// open the thread summary
|
|
|
|
cy.get(".mx_RoomView_body .mx_ThreadSummary").click();
|
|
|
|
|
|
|
|
// Bob votes 'Maybe' in the poll
|
|
|
|
botVoteForOption(botBob, roomId, pollId, pollParams.options[2]);
|
|
|
|
// Charlie votes 'No'
|
|
|
|
botVoteForOption(botCharlie, roomId, pollId, pollParams.options[1]);
|
|
|
|
|
|
|
|
// no votes shown until I vote, check votes have arrived in main tl
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_RoomView_body .mx_MPollBody_totalVotes").should("contain", "2 votes cast");
|
2022-07-20 09:56:52 +02:00
|
|
|
// and thread view
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_ThreadView .mx_MPollBody_totalVotes").should("contain", "2 votes cast");
|
2022-07-20 09:56:52 +02:00
|
|
|
|
2023-03-08 12:23:41 +01:00
|
|
|
// Take snapshots of poll on ThreadView
|
|
|
|
cy.setSettingValue("layout", null, SettingLevel.DEVICE, Layout.Bubble);
|
|
|
|
cy.get(".mx_ThreadView .mx_EventTile[data-layout='bubble']").should("be.visible");
|
|
|
|
cy.get(".mx_ThreadView").percySnapshotElement("ThreadView with a poll on bubble layout", {
|
|
|
|
percyCSS: hidePercyCSS,
|
|
|
|
});
|
|
|
|
cy.setSettingValue("layout", null, SettingLevel.DEVICE, Layout.Group);
|
|
|
|
cy.get(".mx_ThreadView .mx_EventTile[data-layout='group']").should("be.visible");
|
|
|
|
cy.get(".mx_ThreadView").percySnapshotElement("ThreadView with a poll on group layout", {
|
|
|
|
percyCSS: hidePercyCSS,
|
|
|
|
});
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_RoomView_body").within(() => {
|
2022-07-20 09:56:52 +02:00
|
|
|
// vote 'Maybe' in the main timeline poll
|
2022-12-12 12:24:14 +01:00
|
|
|
getPollOption(pollId, pollParams.options[2]).click("topLeft");
|
2022-07-20 09:56:52 +02:00
|
|
|
// both me and bob have voted Maybe
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[2], 2);
|
|
|
|
});
|
|
|
|
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_ThreadView").within(() => {
|
2022-07-20 09:56:52 +02:00
|
|
|
// votes updated in thread view too
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[2], 2);
|
|
|
|
// change my vote to 'Yes'
|
2022-12-12 12:24:14 +01:00
|
|
|
getPollOption(pollId, pollParams.options[0]).click("topLeft");
|
2022-07-20 09:56:52 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
// Bob updates vote to 'No'
|
|
|
|
botVoteForOption(botBob, roomId, pollId, pollParams.options[1]);
|
|
|
|
|
|
|
|
// me: yes, bob: no, charlie: no
|
|
|
|
const expectVoteCounts = () => {
|
|
|
|
// I voted yes
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[0], 1);
|
|
|
|
// Bob and Charlie voted no
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[1], 2);
|
|
|
|
// 0 for maybe
|
|
|
|
expectPollOptionVoteCount(pollId, pollParams.options[2], 0);
|
|
|
|
};
|
|
|
|
|
|
|
|
// check counts are correct in main timeline tile
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_RoomView_body").within(() => {
|
2022-07-20 09:56:52 +02:00
|
|
|
expectVoteCounts();
|
|
|
|
});
|
|
|
|
// and in thread view tile
|
2022-12-12 12:24:14 +01:00
|
|
|
cy.get(".mx_ThreadView").within(() => {
|
2022-07-20 09:56:52 +02:00
|
|
|
expectVoteCounts();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|