
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
cypress-touch-command
Advanced tools
Fork from nTopus/cy-mobile-commands, most of the changes came from dmtrKovalenko/cypress-real-events. Support e2e testing of multi-touch in rendering libraries like pixi.js.
npm install --save-dev cypress-touch-command
Open cypress/support/e2e.ts and add:
import 'cypress-touch-command';
swipe.swipe(checkpoint1, checkpoint2[, ..., checkpointN])
.swipe(configObject, checkpoint1, checkpoint2[, ..., checkpointN])
The configObject parameter is optional. The available options are:
delay: (number of milliseconds = 1000) the delta time from the touchstart to touchend.steps: (integer = computed) the number of steps between two checkpoints.draw: (boolean = true) display the swipe path over the page.You can set two or more steps to make the swipe path as complex as you need.
Where checkpoint# musc be an array of positions. An array of positions perform a multi touch action.
Where position can be:
{ x: 100, y: 100 }.it('1 finger 1 stage', () => {
cy.visit('/cypress/fixtures/pixi.html');
cy.wait(1_000)
.get('#pixi canvas')
.swipe(
[
{
x: 100,
y: 100,
},
],
[
{
x: 100,
y: 300,
},
],
);
cy.wait(1_000)
.get('#pixi canvas')
.toMatchImageSnapshot();
});
FAQs
touch helper for Cypress
The npm package cypress-touch-command receives a total of 1 weekly downloads. As such, cypress-touch-command popularity was classified as not popular.
We found that cypress-touch-command demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.