One of my webpage elements contains the following text:
<span class="mat-button-wrapper">Sicherheitsfrage ändern</span>
However, when I attempt to verify this text using webdriver, it indicates that it is incorrect
assert.strictEqual($(.mat-button-wrapper).getText(), 'Sicherheitsfrage ändern')
Upon further inspection through console.log, I notice that the text appears as Sicherheitsfrage einrichten instead of what it should be - Sicherheitsfrage ändern
What is causing this transformation of the text? Is there a way to prevent it from happening?