Try this way, first store locator in variable(valueElement) and next store locator's text value in variable (value1) (using locator variable),
const valueElement = await page.locator('[data-testid="typography"]'); const value1 = await valueElement.textContent();