Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Braimllari committed May 4, 2024
1 parent 224fd34 commit c3db629
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
10 changes: 0 additions & 10 deletions cypress/e2e/gear-icon-takes-to-settings.cy.js

This file was deleted.

10 changes: 0 additions & 10 deletions cypress/e2e/home-button.cy.js

This file was deleted.

16 changes: 16 additions & 0 deletions cypress/e2e/navigation-bar.cy.js
Original file line number Diff line number Diff line change
@@ -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");
});
});

0 comments on commit c3db629

Please sign in to comment.