1、創(chuàng)建一個(gè)js文件? {your_project}/cypress/integration/sample_spec.js,此時(shí)打開cypress執(zhí)行器,可以看到該文件
2、sample_spec.js輸入測試腳本:
describe('My First Test', () => { it('Does not do much!', () => { expect(true).to.equal(false) })})
3、cypress執(zhí)行器點(diǎn)擊運(yùn)行該文件,執(zhí)行成功
