From 0badb4ad330105028ce2cf0992db9ccebf48269e Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:27:08 +0200 Subject: [PATCH] docs: fix async further reading links --- docs/rules/no-async-before.md | 7 +++---- docs/rules/no-async-tests.md | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/rules/no-async-before.md b/docs/rules/no-async-before.md index 8acd26b4..bd01e535 100644 --- a/docs/rules/no-async-before.md +++ b/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 @@ -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) diff --git a/docs/rules/no-async-tests.md b/docs/rules/no-async-tests.md index 6d3ae8c3..efe62642 100644 --- a/docs/rules/no-async-tests.md +++ b/docs/rules/no-async-tests.md @@ -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)