Skip to content

Commit 7825b70

Browse files
committed
lint
1 parent 8822282 commit 7825b70

24 files changed

+168
-165
lines changed

docs/api/actions/selectfile.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ cy.get('input[type=file]').selectFile('file contents')
5050

5151
### Arguments
5252

53-
<Icon name="angle-right" /> **file _(String, Array, Object or
54-
Cypress.Buffer)_**
53+
<Icon name="angle-right" /> **file _(String, Array, Object or Cypress.Buffer)_**
5554

5655
Either a single file, or an array of files. A file can be:
5756

docs/api/assertions/should.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ cy.get('p').should(($p) => {
239239
})
240240
```
241241

242-
<Icon name="exclamation-triangle" color="red" /> **Warning** Any value returned
243-
from a `.should()` callback function will be ignored. The original subject will
244-
be yielded to the next command.
242+
<Icon name="exclamation-triangle" color="red" /> **Warning** Any value returned from
243+
a `.should()` callback function will be ignored. The original subject will be yielded
244+
to the next command.
245245

246246
```js
247247
cy.get('p')

docs/api/commands/wrap.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ For example, given the following example:
151151
- `bar()` is also dependent on some data that is created while after calling
152152
other Cypress commands.
153153

154-
<Icon name="exclamation-triangle" color="red" />** If you wrap the
155-
asynchronous functions in `cy.wrap()`, then `bar()` may be called prematurely
156-
before the required data is available:
154+
<Icon name="exclamation-triangle" color="red" />
155+
** If you wrap the asynchronous functions in `cy.wrap()`, then `bar()` may be called
156+
prematurely before the required data is available:
157157

158158
```javascript
159159
cy.wrap(foo())
@@ -170,9 +170,9 @@ cy.wrap(bar()) // DON'T DO THIS
170170
This behavior is due to the function invocation `foo()` and `bar()`, which call
171171
the functions immediately to return a Promise.
172172

173-
<Icon name="check-circle" color="green" />** If you want `bar()` to execute
174-
after `foo()` and the [cy.get()](/api/commands/get) commands, one solution is to
175-
chain off the final command using [.then()](/api/commands/then):
173+
<Icon name="check-circle" color="green" />
174+
** If you want `bar()` to execute after `foo()` and the [cy.get()](/api/commands/get)
175+
commands, one solution is to chain off the final command using [.then()](/api/commands/then):
176176

177177
```javascript
178178
cy.wrap(foo())

docs/api/cypress-api/custom-commands.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,10 @@ couple commands.
847847

848848
Don't do things like:
849849

850-
- <Icon name="exclamation-triangle" color="red" />** `cy.clickButton(selector)`
851-
- <Icon name="exclamation-triangle" color="red" />** `.shouldBeVisible()`
850+
- <Icon name="exclamation-triangle" color="red" />
851+
** `cy.clickButton(selector)`
852+
- <Icon name="exclamation-triangle" color="red" />
853+
** `.shouldBeVisible()`
852854

853855
This first custom command is wrapping `cy.get(selector).click()`. Going down
854856
this route would lead to creating dozens or even hundreds of custom commands to

docs/api/cypress-api/custom-queries.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,10 @@ already quite expressive and powerful.
410410
411411
Don't do things like:
412412
413-
- <Icon name="exclamation-triangle" color="red" />** `cy.getButton()`
414-
- <Icon name="exclamation-triangle" color="red" />** `.getFirstTableRow()`
413+
- <Icon name="exclamation-triangle" color="red" />
414+
** `cy.getButton()`
415+
- <Icon name="exclamation-triangle" color="red" />
416+
** `.getFirstTableRow()`
415417
416418
Both of these are wrapping `cy.get(selector)`. It's completely unnecessary. Just
417419
call `.get('button')` or `.get('tr:first')`.

docs/faq/questions/using-cypress-faq.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,8 @@ hosted by Curiosity Software. In addition, since our
11071107

11081108
<Icon name="github" inline="true" contentType="rwa" /> is implemented using XState
11091109
model state library, we are looking for ways to make model-based testing simpler
1110-
and more powerful. Read [Access XState from Cypress Test](https://glebbahmutov.com/blog/cypress-and-xstate/) for our start.
1110+
and more powerful. Read [Access XState from Cypress Test](https://glebbahmutov.com/blog/cypress-and-xstate/)
1111+
for our start.
11111112

11121113
### <Icon name="angle-right" /> Can Cypress test WASM code?
11131114

docs/guides/cloud/account-management/organizations.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ with Cypress teams.
3838

3939
You can create an organization from within
4040
[Cypress Cloud](https://on.cypress.io/cloud) by opening the organization
41-
switcher and clicking <Icon name="plus" /> Create new organization**.
41+
switcher and clicking <Icon name="plus" /> Create new organization\*\*.
4242

4343
<DocsImage
4444
src="/img/guides/cloud/organizations/create-org.jpg"

docs/guides/cloud/getting-started.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ can also record your tests when running locally.
3131

3232
:::tip
3333

34-
<Icon name="check-circle" color="green" /> Make sure to
35-
[install](/guides/getting-started/installing-cypress) and
36-
[open](/guides/getting-started/opening-the-app) the Cypress app to get started
34+
<Icon name="check-circle" color="green" /> Make sure to [install](/guides/getting-started/installing-cypress)
35+
and [open](/guides/getting-started/opening-the-app) the Cypress app to get started
3736
recording!
3837

3938
:::

docs/guides/cloud/integrations/jira.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ workflow to enable:
7272
/>
7373

7474
:::caution
75-
75+
7676
<Icon name="exclamation-triangle" /> Only one Active installation is supported
7777

7878
:::

docs/guides/cloud/integrations/source-control/github.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ to use GitHub integration.
1717

1818
:::caution
1919

20-
<Icon name="exclamation-triangle" /> The user enabling the integration must be a GitHub admin to enable repository access.
20+
<Icon name="exclamation-triangle" /> The user enabling the integration must be a
21+
GitHub admin to enable repository access.
2122

2223
:::
2324

0 commit comments

Comments
 (0)