Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed failed codes #66

Merged
merged 1 commit into from
Sep 21, 2024
Merged
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: 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
Loading