Skip to content

Commit

Permalink
fix: update custom-query on links to match custom-command syntax (#25092
Browse files Browse the repository at this point in the history
)
  • Loading branch information
emilyrohrbough committed Dec 9, 2022
1 parent 910f912 commit 4e82100
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cli/types/cypress.d.ts
Expand Up @@ -362,7 +362,7 @@ declare namespace Cypress {

/**
* Utility functions for ensuring various properties about a subject.
* @see https://on.cypress.io/custom-queries
* @see https://on.cypress.io/api/custom-queries
*/
ensure: Ensure

Expand Down Expand Up @@ -1613,7 +1613,7 @@ declare namespace Cypress {
/**
* Invoke a command synchronously, without using the command queue.
*
* @see https://on.cypress.io/custom-queries
* @see https://on.cypress.io/api/custom-queries
*/
now(name: string, ...args: any[]): Promise<any> | ((subject: any) => any)

Expand Down
4 changes: 2 additions & 2 deletions packages/driver/cypress/e2e/commands/commands.cy.js
Expand Up @@ -91,7 +91,7 @@ describe('src/cy/commands/commands', () => {
it('throws when attempting to add an existing query', (done) => {
cy.on('fail', (err) => {
expect(err.message).to.eq('`Cypress.Commands.addQuery()` is used to create new queries, but `get` is an existing Cypress command or query, or is reserved internally by Cypress.\n\n If you want to override an existing command or query, use `Cypress.Commands.overrideQuery()` instead.')
expect(err.docsUrl).to.eq('https://on.cypress.io/custom-queries')
expect(err.docsUrl).to.eq('https://on.cypress.io/api/custom-queries')

done()
})
Expand Down Expand Up @@ -139,7 +139,7 @@ describe('src/cy/commands/commands', () => {
it('throws when attempting to add a query with the same name as an internal function', (done) => {
cy.on('fail', (err) => {
expect(err.message).to.eq('`Cypress.Commands.addQuery()` cannot create a new query named `addCommand` because that name is reserved internally by Cypress.')
expect(err.docsUrl).to.eq('https://on.cypress.io/custom-queries')
expect(err.docsUrl).to.eq('https://on.cypress.io/api/custom-queries')

done()
})
Expand Down
4 changes: 2 additions & 2 deletions packages/driver/src/cypress/error_messages.ts
Expand Up @@ -853,11 +853,11 @@ export default {
},
invalid_new_query: {
message: '`Cypress.Commands.addQuery()` is used to create new queries, but `{{name}}` is an existing Cypress command or query, or is reserved internally by Cypress.\n\n If you want to override an existing command or query, use `Cypress.Commands.overrideQuery()` instead.',
docsUrl: 'https://on.cypress.io/custom-queries',
docsUrl: 'https://on.cypress.io/api/custom-queries',
},
reserved_command_query: {
message: '`Cypress.Commands.addQuery()` cannot create a new query named `{{name}}` because that name is reserved internally by Cypress.',
docsUrl: 'https://on.cypress.io/custom-queries',
docsUrl: 'https://on.cypress.io/api/custom-queries',
},
invalid_overwrite: {
message: 'Cannot overwite command for: `{{name}}`. An existing command does not exist by that name.',
Expand Down

5 comments on commit 4e82100

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e82100 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/linux-arm64/develop-4e8210030317aac6e7d980ec4ba8aa55b5110b20/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e82100 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/linux-x64/develop-4e8210030317aac6e7d980ec4ba8aa55b5110b20/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e82100 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/darwin-x64/develop-4e8210030317aac6e7d980ec4ba8aa55b5110b20/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e82100 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/win32-x64/develop-4e8210030317aac6e7d980ec4ba8aa55b5110b20/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4e82100 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/darwin-arm64/develop-4e8210030317aac6e7d980ec4ba8aa55b5110b20/cypress.tgz

Please sign in to comment.