From 2bac10ed10bfe30d96150cd71358b0ceb32f2399 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Fri, 16 May 2025 10:43:39 -0400 Subject: [PATCH 1/5] update examples to have them follow unsafe to chain conventions --- docs/api/commands/blur.mdx | 3 ++- docs/api/commands/focus.mdx | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/api/commands/blur.mdx b/docs/api/commands/blur.mdx index 36c264f26f..2d550184f9 100644 --- a/docs/api/commands/blur.mdx +++ b/docs/api/commands/blur.mdx @@ -74,7 +74,8 @@ Pass in an options object to change the default behavior of `.blur`. #### Blur the comment input ```javascript -cy.get('[name="comment"]').type('Nice Product!').blur() +cy.get('[name="comment"]').type('Nice Product!') +cy.get('[name="comment"]').blur() ``` ### Options diff --git a/docs/api/commands/focus.mdx b/docs/api/commands/focus.mdx index bf1f67c959..90364c6dc0 100644 --- a/docs/api/commands/focus.mdx +++ b/docs/api/commands/focus.mdx @@ -65,8 +65,9 @@ cy.get('[type="input"]').focus() #### Focus, type, and blur a textarea ```javascript -// yields the