mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 06:28:27 +00:00
Migrate timeline.spec.ts from Cypress to Playwright (#12025)
* Migrate timeline.spec.ts from Cypress to Playwright Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Monospace font for timestamps Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * More expects Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * delint Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8040ed92a9
commit
4f19356492
@@ -105,6 +105,14 @@ export class ElementAppPage {
|
||||
return this.page.locator(`${panelClass} .mx_MessageComposer`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the composer input field
|
||||
* @param isRightPanel whether to select the right panel composer, otherwise the main timeline composer
|
||||
*/
|
||||
public getComposerField(isRightPanel?: boolean): Locator {
|
||||
return this.getComposer(isRightPanel).locator("[contenteditable]");
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the message composer kebab menu
|
||||
* @param isRightPanel whether to select the right panel composer, otherwise the main timeline composer
|
||||
@@ -155,4 +163,10 @@ 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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user