Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2021-12-09 09:10:23 +00:00
parent 7b94e13a84
commit 2e8a93834b
103 changed files with 232 additions and 209 deletions

View file

@ -15,9 +15,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import * as puppeteer from "puppeteer";
import { measureStart, measureStop } from '../util';
import { ElementSession } from "../session";
import * as puppeteer from "puppeteer";
export async function openRoomDirectory(session: ElementSession): Promise<void> {
const roomDirectoryButton = await session.query('.mx_LeftPanel_exploreButton');

View file

@ -16,6 +16,7 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementSession } from "../session";
export async function assertDialog(session: ElementSession, expectedTitle: string): Promise<void> {

View file

@ -16,9 +16,10 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementHandle } from "puppeteer";
import { openRoomSummaryCard } from "./rightpanel";
import { ElementSession } from "../session";
import { ElementHandle } from "puppeteer";
export async function openMemberInfo(session: ElementSession, name: String): Promise<void> {
const membersAndNames = await getMembersInMemberlist(session);

View file

@ -16,10 +16,11 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementHandle } from "puppeteer";
import { openRoomSummaryCard } from "./rightpanel";
import { acceptDialog } from './dialog';
import { ElementSession } from "../session";
import { ElementHandle } from "puppeteer";
export async function setSettingsToggle(session: ElementSession, toggle: ElementHandle, enabled): Promise<boolean> {
const className = await session.getElementProperty(toggle, "className");

View file

@ -15,6 +15,7 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementSession } from "../session";
export async function sendMessage(session: ElementSession, message: string): Promise<void> {

View file

@ -16,6 +16,7 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementSession } from "../session";
export async function openSettings(session: ElementSession, section: string): Promise<void> {

View file

@ -16,6 +16,7 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementSession } from "../session";
export async function signup(session: ElementSession, username: string, password: string,

View file

@ -16,9 +16,10 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementSession } from "../session";
import { ElementHandle } from "puppeteer";
import { ElementSession } from "../session";
export async function scrollToTimelineTop(session: ElementSession): Promise<void> {
session.log.step(`scrolls to the top of the timeline`);
await session.page.evaluate(() => {

View file

@ -15,6 +15,7 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { ElementSession } from "../session";
export async function assertNoToasts(session: ElementSession): Promise<void> {

View file

@ -16,6 +16,7 @@ limitations under the License.
*/
import { strict as assert } from 'assert';
import { openMemberInfo } from "./memberlist";
import { ElementSession } from "../session";