Playwright: Convert lazy-loading test to playwright (#11988)
* Implement method to wait for next sync * Add timeline coded to app page * Convert network plugin * Add createBot fixture * Convert lazy-loading test * Remove cypress test * Remove converted files * Remove imports * Fix date in copyright header Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> * Fix date in copyright header Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> * Use proper method to send messages * Fix sliding-sync test * Address comments * Move code to timeline --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
24cda5fc59
commit
4c2efc3637
11 changed files with 279 additions and 358 deletions
|
@ -18,6 +18,7 @@ import { type Locator, type Page, expect } from "@playwright/test";
|
|||
|
||||
import { Settings } from "./settings";
|
||||
import { Client } from "./client";
|
||||
import { Timeline } from "./timeline";
|
||||
import { Spotlight } from "./Spotlight";
|
||||
|
||||
export class ElementAppPage {
|
||||
|
@ -25,6 +26,7 @@ export class ElementAppPage {
|
|||
|
||||
public settings = new Settings(this.page);
|
||||
public client: Client = new Client(this.page);
|
||||
public timeline: Timeline = new Timeline(this.page);
|
||||
|
||||
/**
|
||||
* Open the top left user menu, returning a Locator to the resulting context menu.
|
||||
|
@ -161,10 +163,4 @@ export class ElementAppPage {
|
|||
await spotlight.open();
|
||||
return spotlight;
|
||||
}
|
||||
|
||||
public async scrollToBottom(page: Page): Promise<void> {
|
||||
await page
|
||||
.locator(".mx_ScrollPanel")
|
||||
.evaluate((scrollPanel) => scrollPanel.scrollTo(0, scrollPanel.scrollHeight));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue