Skip to content

Commit

Permalink
Fix the type of $$. (#6327)
Browse files Browse the repository at this point in the history
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
  • Loading branch information
sainthkh and jennifer-shehane authored Feb 19, 2020
1 parent 3e3e44d commit 189efd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ declare namespace Cypress {
* @example
* cy.$$('p')
*/
$$: JQueryStatic
$$<TElement extends Element = HTMLElement>(selector: JQuery.Selector, context?: Element | Document | JQuery): JQuery<TElement>
}

interface SinonSpyAgent<A extends sinon.SinonSpy> {
Expand Down
6 changes: 6 additions & 0 deletions cli/types/tests/chainer-examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,3 +456,9 @@ cy.writeFile('../file.path', '', {
cy.get('foo').click()
cy.get('foo').rightclick()
cy.get('foo').dblclick()

// cy.$$() is not jQuery(). It only queries.
// $ExpectError
cy.$$.escapeSelector
cy.$$('.warning')
cy.$$('.warning', cy.$$('.notice'))

4 comments on commit 189efd2

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 189efd2 Feb 19, 2020

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.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/linux-x64/circle-develop-189efd241b844a5f7070a005039e4c216da7fa33-258186/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/circle-develop-189efd241b844a5f7070a005039e4c216da7fa33-258172/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 189efd2 Feb 19, 2020

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.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/darwin-x64/circle-develop-189efd241b844a5f7070a005039e4c216da7fa33-258236/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/circle-develop-189efd241b844a5f7070a005039e4c216da7fa33-258194/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 189efd2 Feb 19, 2020

Choose a reason for hiding this comment

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

AppVeyor has built the win32 ia32 version of the Test Runner.

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

Instructions are included below, depending on the shell you are using.

In Command Prompt (cmd.exe):

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-ia32/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.0.3/win32-ia32/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-ia32/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

Using cross-env:

If the above commands do not work for you, you can also try using cross-env:

npm i -g cross-env
cross-env CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-ia32/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 189efd2 Feb 19, 2020

Choose a reason for hiding this comment

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

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

You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.

You will need to use custom CYPRESS_INSTALL_BINARY url and install Cypress using an url instead of the version.

Instructions are included below, depending on the shell you are using.

In Command Prompt (cmd.exe):

set CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-x64/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.0.3/win32-x64/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-x64/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

Using cross-env:

If the above commands do not work for you, you can also try using cross-env:

npm i -g cross-env
cross-env CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.3/win32-x64/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.0.3/appveyor-develop-189efd241b844a5f7070a005039e4c216da7fa33-30902106/cypress.tgz

Please sign in to comment.