Cypress end to end testing using TypeScript
Refer youtube.com/qavbox or qavalidation.com
- Clone this repo
- Navigate to the project directory in terminal / command prompt
- Run the specs / cypress tests [placed under cypress/integration folder]
- To run, type below command
npm run cypress:open
this above will open the Cypress UI and select particular test to run.
// SampleSpec.ts
describe("Reg form test", () => {
it("enter some value", ()=> {
cy.visit("https://qavbox.github.io/demo/signup/");
cy.get("#username").type("qavbox");
cy.get('input[name=\'home\']').click();
})
})