From d1df0ee78ebfdab911c0aeffc73e2dfa5a97c98d Mon Sep 17 00:00:00 2001 From: Ruhollah <53814636+ruhollahh@users.noreply.github.com> Date: Thu, 17 Jun 2021 17:18:53 +0430 Subject: [PATCH 1/2] Update bylabeltext.mdx Updated the example code for React and Cypress so it works properly. --- docs/queries/bylabeltext.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/queries/bylabeltext.mdx b/docs/queries/bylabeltext.mdx index c9b6814bb..e9af67fad 100644 --- a/docs/queries/bylabeltext.mdx +++ b/docs/queries/bylabeltext.mdx @@ -71,14 +71,14 @@ import { render, screen } from '@testing-library/react' render() -const inputNode = screen.getByLabelText('username') +const inputNode = screen.getByLabelText('Username') ``` ```js -cy.findByLabelText('username').should('exist') +cy.findByLabelText('Username').should('exist') ``` From a3a4602ce886aedcd4dce6732be5d8505d2b566c Mon Sep 17 00:00:00 2001 From: Ruhollah <53814636+ruhollahh@users.noreply.github.com> Date: Sat, 19 Jun 2021 00:50:51 +0430 Subject: [PATCH 2/2] Update bylabeltext.mdx Updated the examples so they are all capitalized the same way. --- docs/queries/bylabeltext.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/queries/bylabeltext.mdx b/docs/queries/bylabeltext.mdx index e9af67fad..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. - + ```