diff --git a/src/content/docs/en/guides/testing.mdx b/src/content/docs/en/guides/testing.mdx
index 0f64779206438..91b483ab9087d 100644
--- a/src/content/docs/en/guides/testing.mdx
+++ b/src/content/docs/en/guides/testing.mdx
@@ -3,8 +3,8 @@ title: Testing
description: An intro to testing in Astro
i18nReady: true
---
-import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
-
+import { Steps } from '@astrojs/starlight/components';
+import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro';
Testing helps you write and maintain working Astro code. Astro supports many popular tools for unit tests, component tests, and end-to-end tests including Jest, Mocha, Jasmine, [Cypress](https://cypress.io) and [Playwright](https://playwright.dev). You can even install framework-specific testing libraries such as React Testing Library to test your UI framework components.
@@ -74,6 +74,7 @@ export default defineConfig({
### Create your first Cypress test
+
1. Choose a page to test. This example will test the example page `index.astro` below.
```html title="src/pages/index.astro"
@@ -104,6 +105,7 @@ export default defineConfig({
:::tip[Set a `baseUrl`]
You can set [`"baseUrl": "http://localhost:4321"`](https://docs.cypress.io/guides/end-to-end-testing/testing-your-app#Step-3-Configure-Cypress) in the `cypress.config.js` configuration file to use `cy.visit("/")` instead of `cy.visit("http://localhost:4321/")` for a more convenient URL.
:::
+
### Running your Cypress tests
@@ -130,7 +132,6 @@ Once the test run is finished, you should see green check marks in the output co
```shell title="Output from npx cypress run"
Running: index.cy.js (1 of 1)
-
✓ titles are correct (107ms)
1 passing (1s)
@@ -184,6 +185,7 @@ You can install NightwatchJS within your Astro project using the package manager
### Create your first Nightwatch test
+
1. Choose a page to test. This example will test the example page `index.astro` below.
```html title="src/pages/index.astro"
@@ -215,6 +217,7 @@ You can install NightwatchJS within your Astro project using the package manager
:::tip[Set a `baseUrl`]
You can set [`"baseURL": "http://localhost:4321"`](https://nightwatchjs.org/guide/reference/settings.html#setting-the-baseurl-property) in the `nightwatch.conf.js` configuration file to use `browser.navigateTo("/")` instead of `browser.navigateTo("http://localhost:4321/")` for a more convenient URL.
:::
+
### Running your NightwatchJS tests
@@ -279,6 +282,7 @@ Alternatively, you can install Playwright within your Astro project using the pa
### Create your first Playwright test
+
1. Choose a page to test. This example will test the example page `index.astro` below.
```html title="src/pages/index.astro"
@@ -293,7 +297,7 @@ Alternatively, you can install Playwright within your Astro project using the pa