Using a unique selector (like the one in your imag...
# e2e-testing
s
Using a unique selector (like the one in your image) invoke https://docs.cypress.io/api/commands/invoke the element text and store it with an alias https://docs.cypress.io/guides/core-concepts/variables-and-aliases i.e.
cy.get('.reveal-private-key etc').invoke('text').as('privateKey')
And later in your test re use it:
Copy code
cy.get('@privateKey').then($elText => {
     cy.log('$elText', $elText)
})