diff --git a/tests/cypress/e2e/dashboard.cy.js b/tests/cypress/e2e/dashboard.cy.js index 91c5955..7be1098 100644 --- a/tests/cypress/e2e/dashboard.cy.js +++ b/tests/cypress/e2e/dashboard.cy.js @@ -28,7 +28,7 @@ describe("Role-based button functionality", () => { cy.visitWithToken("/dashboard"); cy.get("#btnParcelControl").contains("Control de paquetería").click(); - cy.url().should("include", "/packages"); + cy.url().should("include", "/package-tracking"); cy.visitWithToken("/dashboard"); }); }); @@ -56,7 +56,7 @@ describe("Role-based button functionality", () => { cy.visitWithToken("/dashboard"); cy.get("#btnParcelControl").contains("Control de paquetería").click(); - cy.url().should("include", "/packages"); + cy.url().should("include", "/package-tracking"); }); }); diff --git a/tests/cypress/e2e/packages.cy.js b/tests/cypress/e2e/packages.cy.js index f52c5f9..eb4c128 100644 --- a/tests/cypress/e2e/packages.cy.js +++ b/tests/cypress/e2e/packages.cy.js @@ -17,7 +17,7 @@ describe("Packages Table", () => { }, }).as("getPackages"); - cy.visitWithToken("/packages"); + cy.visitWithToken("/package-tracking"); }); it("should display the packages table with confirmation buttons", () => { @@ -36,7 +36,7 @@ describe("Packages Table", () => { body: { message: "Internal Server Error" }, }).as("getPackagesError"); - cy.visitWithToken("/packages"); + cy.visitWithToken("/package-tracking"); cy.wait("@getPackagesError"); cy.get("#packageTable").should("exist"); diff --git a/views/dashboard/blocks/parcelControlbutton.html b/views/dashboard/blocks/parcelControlbutton.html index 5ee724f..5798ece 100644 --- a/views/dashboard/blocks/parcelControlbutton.html +++ b/views/dashboard/blocks/parcelControlbutton.html @@ -4,7 +4,7 @@ id="btnParcelControl" class="btn btn-primary btn-lg me-3" style="width: 150px; height: 150px" - onclick="navigateTo('/packages')" + onclick="navigateTo('/package-tracking')" > local_shipping
Control de paquetería diff --git a/views/packages/assets/index.js b/views/package-tracking/assets/index.js similarity index 97% rename from views/packages/assets/index.js rename to views/package-tracking/assets/index.js index 8cc0ed4..64bf095 100644 --- a/views/packages/assets/index.js +++ b/views/package-tracking/assets/index.js @@ -93,7 +93,7 @@ async function loadPackagesTable() { } document.getElementById("registerPackage").addEventListener("click", () => { - window.location.href = "/packages/register.html"; + window.location.href = "/package-tracking/register.html"; }); window.addEventListener("load", async () => { diff --git a/views/packages/index.html b/views/package-tracking/index.html similarity index 92% rename from views/packages/index.html rename to views/package-tracking/index.html index 69d908c..f4fc2c2 100644 --- a/views/packages/index.html +++ b/views/package-tracking/index.html @@ -23,4 +23,4 @@

Lista de Entregas

- +