diff --git a/docs/queries/bylabeltext.mdx b/docs/queries/bylabeltext.mdx
index c9b6814bb..d81cd4758 100644
--- a/docs/queries/bylabeltext.mdx
+++ b/docs/queries/bylabeltext.mdx
@@ -50,7 +50,7 @@ The example below will find the input node for the following DOM structures:
// aria-label attributes
// Take care because this is not a label that users can see on the page,
// so the purpose of your input must be obvious to visual users.
-
+
```
)
-const inputNode = screen.getByLabelText('username')
+const inputNode = screen.getByLabelText('Username')
```
```js
-cy.findByLabelText('username').should('exist')
+cy.findByLabelText('Username').should('exist')
```