Skip to content

Commit cc2d734

Browse files
authored
feat: update on-links (#19235)
1 parent 6a16266 commit cc2d734

File tree

19 files changed

+25
-25
lines changed

19 files changed

+25
-25
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
[![npm version](https://badge.fury.io/js/cypress.svg)](https://badge.fury.io/js/cypress)
4444

45-
Install Cypress for Mac, Linux, or Windows, then [get started](https://docs.cypress.io/guides/getting-started/installing-cypress.html).
45+
Install Cypress for Mac, Linux, or Windows, then [get started](https://on.cypress.io/install).
4646

4747
```bash
4848
npm install cypress --save-dev

npm/create-cypress-tests/src/component-testing/init-component-testing.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function injectAndShowPluginConfig<T> (template: Template<T>, {
8484
code: await getPluginsSourceExample(ast),
8585
language: 'js',
8686
filePath: pluginsFilePath,
87-
fallbackFileMessage: 'plugins file (https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests.html#Plugin-files)',
87+
fallbackFileMessage: 'plugins file (https://on.cypress.io/plugins-file)',
8888
})
8989
}
9090

npm/cypress-schematic/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Read our docs to learn more about [launching browsers](https://on.cypress.io/lau
8484

8585
### Recording test results to the Cypress Dashboard
8686

87-
We recommend setting your [Cypress Dashboard](https://docs.cypress.io/guides/dashboard/introduction) recording key as an environment variable and NOT as a builder option when running it in CI.
87+
We recommend setting your [Cypress Dashboard](https://on.cypress.io/features-dashboard) recording key as an environment variable and NOT as a builder option when running it in CI.
8888

8989
```json
9090
"cypress-run": {
@@ -102,7 +102,7 @@ We recommend setting your [Cypress Dashboard](https://docs.cypress.io/guides/das
102102
}
103103
```
104104

105-
Read our docs to learn more about [recording test results](https://on.cypress.io/recording-project-runs) to the [Cypress Dashboard](https://docs.cypress.io/guides/dashboard/introduction).
105+
Read our docs to learn more about [recording test results](https://on.cypress.io/recording-project-runs) to the [Cypress Dashboard](https://on.cypress.io/features-dashboard).
106106

107107
### Specifying a custom `cypress.json` config file
108108

npm/react/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242

243243
* Added the need to install a preprocessor or a dev-server plugin
244244
* Removed the pre-instalation of test coverage
245-
* Install it manually by following [the documentation](https://docs.cypress.io/guides/tooling/code-coverage.html#Introduction)
245+
* Install it manually by following [the documentation](https://on.cypress.io/code-coverage-introduction)
246246
* removed the pre-installation of `cypress-react-selector`
247247
* If you use `cy.react()` in your tests, the command will not work anymore. [Install it back in your support file](https://www.npmjs.com/package/cypress-react-selector)
248248

npm/react/examples/find-webpack/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Next, create a `cypress.json` with some basic configuration:
3535

3636
Here we are adding some Component Testing specific options, hence the `"component"` key. `"componentFolder"` is where all the components and tests are located, and `"testFiles"` is the pattern to search for test files.
3737

38-
The last thing we need to is tell Cypress to use `@cypress/webpack-dev-server` for component tests. Plugins are explained in detail in the [Cypress documentation](https://docs.cypress.io/guides/tooling/plugins-guide#Installing-plugins). By default plugins are loaded from `cypress/plugins/index.js`. Create that file and add:
38+
The last thing we need to is tell Cypress to use `@cypress/webpack-dev-server` for component tests. Plugins are explained in detail in the [Cypress documentation](https://on.cypress.io/installing-plugins). By default plugins are loaded from `cypress/plugins/index.js`. Create that file and add:
3939

4040
```js
4141
const devServer = require("@cypress/react/plugins/react-scripts")
@@ -66,7 +66,7 @@ it('renders learn react link', () => {
6666
});
6767
```
6868

69-
Most tests will start with `mount` from `@cypress/react`. This is similar to `render` in Testing Library. Once you've mounted your component, you can use Cypress' extensive [query and assertion APIs](https://docs.cypress.io/api/table-of-contents) to ensure everything behaves correctly. This example asserts an anchor tag with the text "Learn React" is rendered.
69+
Most tests will start with `mount` from `@cypress/react`. This is similar to `render` in Testing Library. Once you've mounted your component, you can use Cypress' extensive [query and assertion APIs](https://on.cypress.io/api) to ensure everything behaves correctly. This example asserts an anchor tag with the text "Learn React" is rendered.
7070

7171
Open the component testing runner with:
7272

npm/vue/examples/vue-cli/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ We need to install:
2222

2323
### Configure Cypress
2424

25-
To setup any Cypress runner, the standard way is to create a `cypress.json` file at the root of your project. Checkout [the docs](https://docs.cypress.io/guides/references/configuration) to know the extend of your options.
25+
To setup any Cypress runner, the standard way is to create a `cypress.json` file at the root of your project. Checkout [the docs](https://on.cypress.io/guides/configuration) to know the extend of your options.
2626

2727
Here is the `cypress.json` file at work in this project:
2828

packages/app/src/settings/project/Config.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<template #description>
77
<i18n-t keypath="settingsPage.config.description">
88
<ExternalLink
9-
href="https://docs.cypress.io"
9+
href="https://on.cypress.io/guides/configuration"
1010
class="text-purple-500"
1111
>
1212
cypress.config.js

packages/app/src/settings/project/ConfigLegend.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
<i18n-t :keypath="legendText.config.descriptionKey">
1515
<ExternalLink
16-
href="https://docs.cypress.io"
16+
href="https://on.cypress.io/guides/configuration"
1717
class="text-purple-500"
1818
>
1919
cypress.config.js
@@ -41,7 +41,7 @@
4141
>
4242
<i18n-t :keypath="legendText.dynamic.descriptionKey">
4343
<ExternalLink
44-
href="https://docs.cypress.io"
44+
href="https://on.cypress.io"
4545
class="text-purple-500"
4646
>
4747
setupNodeEnv

packages/app/src/settings/project/Experiments.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<template #description>
77
<i18n-t keypath="settingsPage.experiments.description">
88
<ExternalLink
9-
href="https://docs.cypress.io"
9+
href="https://on.cypress.io/experiments"
1010
>
1111
{{ t('links.learnMore') }}
1212
</ExternalLink>

packages/app/src/settings/project/ProjectId.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<template #description>
1010
<i18n-t keypath="settingsPage.projectId.description">
1111
<ExternalLink
12-
href="https://docs.cypress.io"
12+
href="https://on.cypress.io/what-is-a-project-id"
1313
>
1414
{{ t('links.learnMore') }}
1515
</ExternalLink>

packages/app/src/settings/project/RecordKey.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<template #description>
77
<i18n-t keypath="settingsPage.recordKey.description">
88
<ExternalLink
9-
href="https://docs.cypress.io"
9+
href="https://on.cypress.io/what-is-a-record-key"
1010
>
1111
{{ t('links.learnMore') }}
1212
</ExternalLink>

packages/app/src/settings/project/SpecPatterns.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<template #description>
1010
<i18n-t keypath="settingsPage.specPattern.description">
1111
<ExternalLink
12-
href="https://docs.cypress.io"
12+
href="https://on.cypress.io"
1313
>
1414
{{ t('links.learnMore') }}
1515
</ExternalLink>

packages/app/src/specs/generators/GeneratorSuccess.spec.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { mount } from '@cypress/react'
1010
1111
describe('<${spec.baseName} />', () => {
1212
it('renders', () => {
13-
// https://docs.cypress.io
13+
// https://on.cypress.io/mount
1414
mount(<${spec.baseName} />)
1515
})
1616
})

packages/data-context/src/sources/WizardDataSource.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class WizardDataSource {
122122
status: 'changes',
123123
warningText: ['Please merge the code below with your existing',
124124
'<span class="px-1 inline-block rounded bg-warning-200 text-warning-600">cypress.config.js</span>'].join(' '),
125-
warningLink: 'https://docs.cypress.io/config-file',
125+
warningLink: 'https://on.cypress.io/guides/configuration',
126126
}
127127

128128
if (testingType === 'component' && templateFileContent) {

packages/frontend-shared/src/components/StandardModal.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const props = withDefaults(defineProps<{
7373
clickOutside: true,
7474
modelValue: false,
7575
helpText: 'Need help?',
76-
helpLink: 'https://docs.cypress.io',
76+
helpLink: 'https://on.cypress.io',
7777
class: undefined,
7878
variant: undefined,
7979
title: '',

packages/frontend-shared/src/gql-components/topnav/DocsMenuContent.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const docsMenu: {
9191
{
9292
text: t('topNav.docsMenu.organizingTests'),
9393
link: {
94-
url: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests',
94+
url: 'https://on.cypress.io/writing-and-organizing-tests',
9595
params: {
9696
utm_medium,
9797
utm_content: 'Organizing Tests',
@@ -154,7 +154,7 @@ const docsMenu: {
154154
text: t('topNav.docsMenu.smartOrchestration'),
155155
changeContent: 'orchestration',
156156
link: {
157-
url: 'https://docs.cypress.io/guides/dashboard/smart-orchestration',
157+
url: 'https://on.cypress.io/smart-orchestration',
158158
params: {
159159
utm_medium,
160160
utm_content: 'Smart Orchestration',

packages/launchpad/src/components/code/FileRow.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const props = defineProps<{
9393
description?: string
9494
}>()
9595
96-
const openDocs = () => window.open('https://docs.cypress.io/config')
96+
const openDocs = () => window.open('https://on.cypress.io/guides/configuration')
9797
9898
// TODO: Remove this. Use FileParts when available
9999
const language = computed(() => {

packages/launchpad/src/error/BaseError.spec.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const docsLinkSelector = '[data-testid=error-docs-link]'
1212
const customFooterSelector = '[data-testid=custom-error-footer]'
1313

1414
// Constants
15-
const docsLink = 'https://docs.cypress.io'
15+
const configLink = 'https://on.cypress.io/guides/configuration'
1616
const messages = defaultMessages.launchpadErrors.generic
1717
const customHeaderMessage = 'Well, this was unexpected!'
1818
const customMessage = `Don't worry, just click the "It's fixed now" button to try again.`
@@ -46,7 +46,7 @@ describe('<BaseError />', () => {
4646
.get(docsButtonSelector)
4747
.should('contain.text', messages.readTheDocsButton)
4848
.get(docsLinkSelector)
49-
.should('have.attr', 'href', docsLink)
49+
.should('have.attr', 'href', configLink)
5050
})
5151

5252
// NOTE: Figure out how to stub the graphql mutation call

packages/launchpad/src/error/BaseError.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
data-testid="error-message"
2828
>
2929
<ExternalLink
30-
href="https://docs.cypress.io"
30+
href="https://on.cypress.io/guides/configuration"
3131
data-testid="error-docs-link"
3232
>cypress.config.js</ExternalLink>
3333
</i18n-t>
@@ -85,7 +85,7 @@ fragment BaseError on BaseError {
8585
`
8686
8787
const openDocs = () => {
88-
document.location.href = 'https://docs.cypress.io'
88+
document.location.href = 'https://on.cypress.io'
8989
}
9090
9191
const { t } = useI18n()

0 commit comments

Comments
 (0)