Skip to content

Commit

Permalink
add login scenario in a new spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanvancea committed Jul 31, 2020
1 parent c7d67fd commit 1b335e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cypress-examples/cypress/integration/examples/login.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
describe("login test suite", function () {
beforeEach(function () {
cy.visit("https://qa-automation-practice.netlify.app");
cy.get("#forms").click();
});

it("login", function () {
cy.get("#login").click();
cy.get("#email").type("[email protected]");
cy.get("#password").type("admin123");
cy.get("#submitLoginBtn").click();
cy.get("#message").should("contain", "You have successfully logged in!");
});
});

0 comments on commit 1b335e9

Please sign in to comment.