Skip to content

Commit f57a3ba

Browse files
authored
position is not an option but an argument
In the click-documentation, `position` is listed as an argument, not a s an option. Unfortunately i can't judge whether one or the other works as this seems to be flaky in our case. I just wanted to do a PR instead of an issue in order to be more constructive in the case that i'm right but maybe i'm wrong here for some reason?
1 parent b4bf81c commit f57a3ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/api/commands/shadow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ When working with `cy.click()`, it sometimes won't click the right element in
7979
Chrome. It's happening because of
8080
[the ambiguity in spec](https://bugs.chromium.org/p/chromium/issues/detail?id=1188919&q=shadowRoot%20elementFromPoint&can=2).
8181

82-
In this case, pass `{ position: 'top' }` to `cy.click()` like below:
82+
In this case, pass `'top'` to `cy.click()` like below:
8383

8484
```js
8585
cy.get('#element')
8686
.shadow()
8787
.find('[data-test-id="my-button"]')
88-
.click({ position: 'top' })
88+
.click('top')
8989
```
9090

9191
## Command Log

0 commit comments

Comments
 (0)