You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Set up key backup using non-deprecated APIs (#12005)
This commit is contained in:
@ -50,6 +50,19 @@ export class ElementAppPage {
|
||||
return this.settings.closeDialog();
|
||||
}
|
||||
|
||||
public async getClipboard(): Promise<string> {
|
||||
return await this.page.evaluate(() => navigator.clipboard.readText());
|
||||
}
|
||||
|
||||
/**
|
||||
* Find an open dialog by its title
|
||||
*/
|
||||
public async getDialogByTitle(title: string, timeout = 5000): Promise<Locator> {
|
||||
const dialog = this.page.locator(".mx_Dialog");
|
||||
await dialog.getByRole("heading", { name: title }).waitFor({ timeout });
|
||||
return dialog;
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens the given room by name. The room must be visible in the
|
||||
* room list, but the room list may be folded horizontally, and the
|
||||
|
Reference in New Issue
Block a user