Skip to content

Commit 167c034

Browse files
consolidate install and open commands
1 parent 65b3b9b commit 167c034

File tree

14 files changed

+67
-78
lines changed

14 files changed

+67
-78
lines changed

docs/app/component-testing/angular/overview.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@ step-by-step tutorial on adding component testing to any project and how to writ
1919
To get up and running with Cypress Component Testing in Angular, install Cypress
2020
into your project:
2121

22-
```bash
23-
npm install cypress --save-dev
24-
```
22+
<CypressInstallCommands />
2523

2624
Open Cypress:
2725

28-
```bash
29-
npx cypress open
30-
```
26+
<CypressOpenCommands />
3127

3228
<DocsImage
3329
src="/img/app/component-testing/select-test-type.jpg"

docs/app/component-testing/react/overview.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,11 @@ step-by-step tutorial on adding component testing to any project and how to writ
2525
To get up and running with Cypress Component Testing in React, install Cypress
2626
into your project:
2727

28-
```bash
29-
npm install cypress --save-dev
30-
```
28+
<CypressInstallCommands />
3129

3230
Open Cypress:
3331

34-
```bash
35-
npx cypress open
36-
```
32+
<CypressOpenCommands />
3733

3834
<DocsImage
3935
src="/img/app/component-testing/select-test-type.jpg"

docs/app/component-testing/svelte/overview.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,11 @@ step-by-step tutorial on adding component testing to any project and how to writ
2929
To get up and running with Cypress Component Testing in Svelte, install Cypress
3030
into your project:
3131

32-
```bash
33-
npm install cypress --save-dev
34-
```
32+
<CypressInstallCommands />
3533

3634
Open Cypress:
3735

38-
```bash
39-
npx cypress open
40-
```
36+
<CypressOpenCommands />
4137

4238
<DocsImage
4339
src="/img/app/component-testing/select-test-type.jpg"

docs/app/component-testing/vue/overview.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ step-by-step tutorial on adding component testing to any project and how to writ
2424
To get up and running with Cypress Component Testing in Vue, install Cypress
2525
into your project:
2626

27-
```bash
28-
npm install cypress --save-dev
29-
```
27+
<CypressInstallCommands />
3028

3129
Open Cypress:
3230

33-
```bash
34-
npx cypress open
35-
```
31+
<CypressOpenCommands />
3632

3733
<DocsImage
3834
src="/img/app/component-testing/select-test-type.jpg"

docs/app/continuous-integration/introduction.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ locally in your terminal. You generally only need to do two things:
2222

2323
1. **Install Cypress**
2424

25-
<Tabs>
26-
<TabItem value="npm">```shell npm install cypress --save-dev ```</TabItem>
27-
<TabItem value="yarn">```shell yarn add cypress --dev ```</TabItem>
28-
<TabItem value="pnpm">```shell pnpm add --save-dev cypress ```</TabItem>
29-
</Tabs>
25+
<CypressInstallCommands />
3026

3127
2. **Run Cypress**
3228

docs/app/get-started/install-cypress.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ First, make sure you have all the [system requirements](#System-requirements).
1313

1414
Install Cypress via your preferred package manager. This will install Cypress locally as a dev dependency for your project. For pnpm, make sure that you have the `pnpm` environment installed: `npm install pnpm@latest --global`.
1515

16-
<Tabs>
17-
<TabItem value="npm">```shell npm install cypress --save-dev ```</TabItem>
18-
<TabItem value="yarn">```shell yarn add cypress --dev ```</TabItem>
19-
<TabItem value="pnpm">```shell pnpm add --save-dev cypress ```</TabItem>
20-
</Tabs>
16+
<CypressInstallCommands />
2117

2218
Make sure you have [Node.js installed](#Installing-Nodejs) and that you have already run
2319
[`npm init`](https://docs.npmjs.com/cli/init) or have a `node_modules` folder or

docs/app/get-started/open-the-app.mdx

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,7 @@ description: 'Open the app effectively in Cypress. Get started with a guide on o
1212
You can open Cypress from your **project root** using one of the following commands,
1313
depending on the package manager (npm, Yarn or pnpm) you are using:
1414

15-
<Tabs>
16-
<TabItem value="npm">
17-
18-
```shell
19-
npx cypress open
20-
```
21-
22-
</TabItem>
23-
<TabItem value="yarn">
24-
25-
```shell
26-
yarn cypress open
27-
```
28-
29-
</TabItem>
30-
<TabItem value="pnpm">
31-
32-
```shell
33-
pnpm cypress open
34-
```
35-
36-
</TabItem>
37-
</Tabs>
15+
<CypressOpenCommands />
3816

3917
After a moment, the Cypress Launchpad will open.
4018

docs/app/guides/migration/protractor-to-cypress.mdx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -235,22 +235,7 @@ community.
235235
While we recommend using our official Angular schematic, you can still install
236236
Cypress manually.
237237

238-
<Tabs>
239-
<TabItem value="npm" active>
240-
241-
```bash
242-
npm install cypress --save-dev
243-
```
244-
245-
</TabItem>
246-
<TabItem value="yarn">
247-
248-
```bash
249-
yarn add cypress --dev
250-
```
251-
252-
</TabItem>
253-
</Tabs>
238+
<CypressInstallCommands />
254239

255240
Then, since Cypress can run in parallel with your application, let's install
256241
[concurrently](https://www.npmjs.com/package/concurrently) to simplify our npm

docs/app/references/troubleshooting.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ cypress cache clear
9595
After running this command, you will need to run `cypress install` before
9696
running Cypress again.
9797

98-
```shell
99-
npm install cypress --save-dev
100-
```
98+
<CypressInstallCommands />
10199

102100
## Launching browsers
103101

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:::tip
22

3-
**Cypress Accessibility** is a paid add-on. [Schedule a demo](https://www.cypress.io/ui-coverage) today and see how easy it is to enhance your accessibility testing while speeding up your development process.
3+
**Cypress Accessibility** is a paid add-on. [Schedule a demo](https://www.cypress.io/ui-coverage?utm_medium=website&utm_source=docs.cypress.io&utm_content=addon-tip) today and see how easy it is to enhance your accessibility testing while speeding up your development process.
44

55
:::

0 commit comments

Comments
 (0)