First of all let's clear the existing scripts from cypress.
Now create a new file firstScript.spec.js under integration and write this script
/// <reference types = "Cypress" /> describe('Cypress first test', function(){ it('Compare 2 numbers', function(){ expect(4).to.equals(4) }); })
Now open the cypress dashboard and click on firstScript.spec.js to run it
You have successfully executed your first Cypress test
0 comments:
Post a Comment