-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6698fe
commit ef67c8c
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,11 @@ describe("Login Module", () => { | |
}); | ||
|
||
it("should successfully log in with valid credentials", () => { | ||
const username = Cypress.env("CYPRESS_USERNAME"); | ||
const password = Cypress.env("CYPRESS_PASSWORD"); | ||
cy.visit("http://localhost:9000/"); | ||
cy.get("[data-testid=email]").type("[email protected]"); | ||
cy.get("[data-testid=password]").type("Jeeva12#"); | ||
cy.get("[data-testid=email]").type(username); | ||
cy.get("[data-testid=password]").type(password); | ||
cy.get('button[type="submit"]').click({ force: true }); | ||
cy.url().should("eq", "http://localhost:9000/home"); | ||
cy.contains( | ||
|
@@ -34,8 +36,8 @@ describe("Login Module", () => { | |
|
||
it("should display an error message with invalid credentials", () => { | ||
cy.visit("http://localhost:9000/"); | ||
cy.get("[data-testid=email]").type("[email protected]"); | ||
cy.get("[data-testid=password]").type("invalid_password"); | ||
cy.get("[data-testid=email]").type("[email protected]"); | ||
cy.get("[data-testid=password]").type("xxxx"); | ||
cy.get('button[type="submit"]').click({ force: true }); | ||
cy.contains("Incorrect email or password").should("be.visible"); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,10 @@ describe.only("Processors Landing Module", () => { | |
cy.visit("http://localhost:9000/"); | ||
}); | ||
it("should successfully log in with valid credentials", () => { | ||
cy.get("[data-testid=email]").type("[email protected]"); | ||
cy.get("[data-testid=password]").type("Jeeva12#"); | ||
const username = Cypress.env("CYPRESS_USERNAME"); | ||
const password = Cypress.env("CYPRESS_PASSWORD"); | ||
cy.get("[data-testid=email]").type(username); | ||
cy.get("[data-testid=password]").type(password); | ||
cy.get('button[type="submit"]').click({ force: true }); | ||
cy.get("[data-testid=processors]").click({ force: true }); | ||
cy.url().should("eq", "http://localhost:9000/connectors"); | ||
|