This extension includes the most common cypress snippets. If you like it, please leave your Rating & Review and share it with your friends.
In order to install an extension, you need to open the Extensions Palette (Ctrl + Shift + X
or Cmd ⌘ + Shift + X
). There you have either the option to show the already installed snippets or install new ones.
- JavaScript (.js)
- TypeScript (.ts)
- JavaScript React (.jsx)
- TypeScript React (.tsx)
Snippet | Code |
---|---|
dsb |
describe('', () => { }); |
ctx |
context('', () => { }); |
spy |
specify('', () => { }); |
it |
it('', () => { }); |
bf |
before('', () => { }); |
bfe |
beforeEach('', () => { }); |
af |
after('', () => { }); |
afe |
afterEach('', () => { }); |
Snippet | Code |
---|---|
cyvt |
cy.visit(''); |
cygt |
cy.get(''); |
cyfd |
cy.get('').find(''); |
cyft |
cy.get('').first(''); |
cyte |
cy.get('').type(''); |
cycs |
cy.contains(''); |
cyck |
cy.get('').click(); |
cywt |
cy.wait(''); |
cylg |
cy.log(''); |
cype |
cy.pause(); |
cydg |
cy.debug(); |
cyst |
cy.screenshot(''); |
cyvp |
cy.viewport(); |
See the CHANGELOG for details about the changes in each version.