Skip to content

Commit

Permalink
Merge pull request #194 from MikeMcC399/async-promises
Browse files Browse the repository at this point in the history
docs: fix async further reading links
  • Loading branch information
jennifer-shehane committed Apr 25, 2024
2 parents 8c83767 + 0badb4a commit 9222abb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions docs/rules/no-async-before.md
@@ -1,6 +1,6 @@
# Prevent using async/await in Cypress test cases (no-async-tests)

Cypress commands that return a promise may cause side effects in before/beforeEach hooks, possibly causing unexpected behavior.
Cypress commands that return a promise may cause side effects in before/beforeEach hooks, possibly causing unexpected behavior.

## Rule Details

Expand Down Expand Up @@ -47,6 +47,5 @@ If there are genuine use-cases for using `async/await` in your before then you m

## Further Reading

- [Commands Are Asynchronous](https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous)
- [Commands Are Promises](https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Promises)
- [Commands Are Not Promises](https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Not-Promises)
- [Mixing Async and Sync code](https://on.cypress.io/guides/core-concepts/introduction-to-cypress#Mixing-Async-and-Sync-code)
- [Commands Are Asynchronous](https://on.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous)
5 changes: 2 additions & 3 deletions docs/rules/no-async-tests.md
Expand Up @@ -47,6 +47,5 @@ If there are genuine use-cases for using `async/await` in your test cases then y

## Further Reading

- [Commands Are Asynchronous](https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous)
- [Commands Are Promises](https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Promises)
- [Commands Are Not Promises](https://docs.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Not-Promises)
- [Mixing Async and Sync code](https://on.cypress.io/guides/core-concepts/introduction-to-cypress#Mixing-Async-and-Sync-code)
- [Commands Are Asynchronous](https://on.cypress.io/guides/core-concepts/introduction-to-cypress.html#Commands-Are-Asynchronous)

0 comments on commit 9222abb

Please sign in to comment.