Auto fix
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
7b94e13a84
commit
2e8a93834b
103 changed files with 232 additions and 209 deletions
|
@ -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');
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
|
@ -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> {
|
||||
|
|
|
@ -16,6 +16,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import { strict as assert } from 'assert';
|
||||
|
||||
import { openMemberInfo } from "./memberlist";
|
||||
import { ElementSession } from "../session";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue