Skip to content

Commit

Permalink
fixed failed codes (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahbub091 authored Sep 21, 2024
2 parents 263b68e + 821c4c0 commit e1477c1
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cypress/support/credentialUtils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const credUtils = {
homePage: "https://www.automationexercise.com/",
loginPage: "https://www.automationexercise.com/login",
homePage: "https://automationexercise.com/",
loginPage: "https://automationexercise.com/login",
email: "test2567867@email.com",
pass: "random123",
name: "Robert",
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/BrokenImageValidation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import credUtils from "../../support/credentialUtils"

describe("Incorrect Login Validation", () => {
it("Navigating to the website", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/HomePageValidation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import credUtils from "../../support/credentialUtils"

describe("HomePage Testing", () => {
it("Navigate and Validate Home Page", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/Test-2-LoginUser.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import credUtils from "../../support/credentialUtils"

describe("Login User With Right Credentials", () => {
it("Navigating to the website", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import credUtils from "../../support/credentialUtils"

describe("Incorrect Login Validation", () => {
it("Navigating to the website", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/Test-4-LogoutUser.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import credUtils from "../../support/credentialUtils"

describe("Test Case 4: Logout User", () => {
it("Navigating to the URL", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/dataPass.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('E-commerce Site Login Test', () => {

// Run this before each test to visit the website
beforeEach(() => {
cy.visit(Cypress.env('TEST'));
cy.visit(Cypress.env('LAMBDATEST'));
});

it('Logs in using valid credentials', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/loginValidatiuon.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import baseFunc from "../../pages/functions"

describe("Login Validation For Users", () => {
it("Navigating to HomePage", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/randomUserVerification.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import test from "../../support/testUtils"

describe("Random User Verification", () => {
it("Navigating To The Webpage", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})
it("Homepage Navigation Verification", () => {
cy.validUrl("exercise", credUtils.homePage)
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/UI Tests/test-1-RegisterUser.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import test from "../../support/testUtils"

describe("Register User on page", () => {
it("Navigating to the website", () => {
cy.visit("/")
cy.visit(Cypress.env('AUTOMATIONEXERCISE'))
})

it("Homepage navigation verification", () => {
Expand Down

0 comments on commit e1477c1

Please sign in to comment.