Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
.idea
cypress.env.json
cypress.env.json
Cypress/screenshots/
Cypress/videos/
34 changes: 34 additions & 0 deletions cypress/e2e/Project/projectModule.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { getRandomString } = require("../../../utilites/helper");
const projectModule_PO = require("../../page_objects/ProjectModule/projectModule_PO");

describe("Search in project module", function () {
beforeEach(function () {
cy.login();
projectModule_PO.visitProjectModulePage();
});
it("Create a project with empty details ", function () {
projectModule_PO.createProject();
});
it("Create Project with empty client name only", function () {
const randomGenerateName = getRandomString();
projectModule_PO.projectInput(randomGenerateName);
projectModule_PO.createProject();
});
it("Create Project with empty Project name only", function () {
projectModule_PO.clientInput();
projectModule_PO.createProject();
});
it("click billable button", function () {
cy.get('[data-cy="toggleBillable"]').click();
cy.get('[data-cy="toggleBillable"]')
.invoke("attr", "title")
.should("eq", "Billable");
});
it("should logout ", function () {
cy.get(".h-6 > path").click();
cy.url().should(
"eq",
"https://frontendbootcamp.proshore.eu/accounts/login"
);
});
});
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ Cypress.Commands.add('login', () => {
cy.get('[data-cy="emailInputField"]').eq(0).type(Cypress.env('APP_EMAIL'))
cy.get('[data-cy="emailInputField"]').eq(1).type(Cypress.env('APP_PASSWORD'))
cy.get("[data-cy='loginButton']").click()
cy.url().should('eq','https://frontendbootcamp.proshore.eu/tracker')
// cy.url().should('eq','https://frontendbootcamp.proshore.eu/tracker')
})