Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppeteer: Fix get_element_text including hidden text.

evykassirer72166f1b03ec
diff --git a/frontend_tests/puppeteer_lib/common.ts b/frontend_tests/puppeteer_lib/common.ts
index 2ebf116ba0e..0e0f45c5198 100644
--- a/frontend_tests/puppeteer_lib/common.ts
+++ b/frontend_tests/puppeteer_lib/common.ts
@@ -192,7 +192,7 @@ class CommonUtils {
}
async get_element_text(element: ElementHandle<Element>): Promise<string> {
- return (await element.getProperty("textContent"))!.jsonValue();
+ return (await element.getProperty("innerText"))!.jsonValue();
}
async get_text_from_selector(page: Page, selector: string): Promise<string> {