Skip to content

Commit

Permalink
test: add tests for special sequences {moveToStart} / {moveToEn… (#6203)
Browse files Browse the repository at this point in the history
* test: add tests for special sequences {moveToStart} / {moveToEnd}
  • Loading branch information
w0wka91 authored Feb 14, 2020
1 parent 1069310 commit 6ace4c5
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3410,6 +3410,20 @@ describe('src/cy/commands/actions/type', () => {
done()
})
})

it('moves the cursor in-between start and end position', () => {
cy
.get('input:first').clear().type('123{moveToStart}456{moveToEnd}789')
.should('have.value', '456123789')

cy
.get('[contenteditable]:first').invoke('text', '').type('123{moveToStart}456{moveToEnd}789')
.should('have.text', '456123789')

cy
.get('textarea:first').clear().type('123{moveToStart}456{enter}{moveToEnd}789')
.should('have.value', '456\n123789')
})
})

describe('release: false', () => {
Expand Down

4 comments on commit 6ace4c5

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6ace4c5 Feb 14, 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.2/linux-x64/circle-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-255277/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/circle-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-255260/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6ace4c5 Feb 14, 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.2/win32-ia32/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.0.2/win32-ia32/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.2/win32-ia32/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/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.2/win32-ia32/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6ace4c5 Feb 14, 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.2/darwin-x64/circle-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-255346/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/circle-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-255279/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 6ace4c5 Feb 14, 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.2/win32-x64/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.tgz

In PowerShell:

$env:CYPRESS_INSTALL_BINARY = https://cdn.cypress.io/beta/binary/4.0.2/win32-x64/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.tgz

In Git Bash:

export CYPRESS_INSTALL_BINARY=https://cdn.cypress.io/beta/binary/4.0.2/win32-x64/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip
npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/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.2/win32-x64/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.zip npm install https://cdn.cypress.io/beta/npm/4.0.2/appveyor-develop-6ace4c54e0f352f1865ab778122117a1b6b1b274-30812382/cypress.tgz

Please sign in to comment.