diff --git a/cypress/e2e/gear-icon-takes-to-settings.cy.js b/cypress/e2e/gear-icon-takes-to-settings.cy.js deleted file mode 100644 index 834560b4..00000000 --- a/cypress/e2e/gear-icon-takes-to-settings.cy.js +++ /dev/null @@ -1,10 +0,0 @@ -describe("Settings Page Navigation Tests From Gear Icon", () => { - beforeEach(() => { - cy.visit("/"); - }); - - it("should navigate to the /settings page when the gear icon is clicked", () => { - cy.get('[data-test="gear-button-testing"]').click(); - cy.url().should("include", "/settings"); - }); -}); diff --git a/cypress/e2e/home-button.cy.js b/cypress/e2e/home-button.cy.js deleted file mode 100644 index 0b711b20..00000000 --- a/cypress/e2e/home-button.cy.js +++ /dev/null @@ -1,10 +0,0 @@ -describe("Home Button", () => { - beforeEach(() => { - cy.visit("/te-dhe-tek"); - }); - - it("should click on the PENDA home button, redirecting to the home page", () => { - cy.get('[data-test="home-button"]').click(); - cy.url().should("include", ""); - }); -}); diff --git a/cypress/e2e/navigation-bar.cy.js b/cypress/e2e/navigation-bar.cy.js new file mode 100644 index 00000000..7272f950 --- /dev/null +++ b/cypress/e2e/navigation-bar.cy.js @@ -0,0 +1,16 @@ +describe("navigation bar", () => { + beforeEach(() => { + cy.visit("/"); + }); + + it("should navigate to the home page when clicking on the home button", () => { + cy.visit("/te-dhe-tek"); + cy.get('[data-test="home-button"]').click(); + cy.url().should("include", ""); + }); + + it("should navigate to the settings page when clicking on the the gear icon", () => { + cy.get('[data-test="gear-button-testing"]').click(); + cy.url().should("include", "/settings"); + }); +});