Skip to content

Commit 7a421e0

Browse files
authored
Update shadow.mdx
One-line for prettier reasons
1 parent afca5fa commit 7a421e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/api/commands/shadow.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ Chrome. It's happening because of
9999
In this case, pass `'top'` to `cy.click()` like below:
100100

101101
```js
102-
cy.get('#element')
103-
.shadow()
104-
.find('[data-test-id="my-button"]')
105-
.click('top')
102+
cy.get('#element').shadow().find('[data-test-id="my-button"]').click('top')
106103
```
107104

108105
## Command Log

0 commit comments

Comments
 (0)