From 429b761976479162e767fc2481fbeca793a86b53 Mon Sep 17 00:00:00 2001 From: Vasyl Ivanchuk Date: Tue, 16 Jan 2024 14:08:09 +0200 Subject: [PATCH 1/2] fix: docs links --- packages/app/src/components/FeeData.vue | 2 +- packages/app/src/components/TheFooter.vue | 2 +- packages/app/src/components/header/TheHeader.vue | 2 +- .../tests/e2e/features/redirection/redirectionSet1.feature | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/app/src/components/FeeData.vue b/packages/app/src/components/FeeData.vue index fadf95e40d..93c2879d80 100644 --- a/packages/app/src/components/FeeData.vue +++ b/packages/app/src/components/FeeData.vue @@ -27,7 +27,7 @@
{{ t( diff --git a/packages/app/src/components/TheFooter.vue b/packages/app/src/components/TheFooter.vue index 86b0c44590..8a3ad69b09 100644 --- a/packages/app/src/components/TheFooter.vue +++ b/packages/app/src/components/TheFooter.vue @@ -24,7 +24,7 @@ const config = useRuntimeConfig(); const navigation = reactive([ { label: computed(() => t("footer.nav.docs")), - url: "https://era.zksync.io/docs/dev/", + url: "https://docs.zksync.io/build/tooling/block-explorer/getting-started.html", }, { label: computed(() => t("footer.nav.terms")), diff --git a/packages/app/src/components/header/TheHeader.vue b/packages/app/src/components/header/TheHeader.vue index 68948b4abc..2c7ca32a8e 100644 --- a/packages/app/src/components/header/TheHeader.vue +++ b/packages/app/src/components/header/TheHeader.vue @@ -159,7 +159,7 @@ const { currentNetwork } = useContext(); const navigation = reactive([ { label: computed(() => t("header.nav.documentation")), - url: "https://era.zksync.io/docs/dev/", + url: "https://docs.zksync.io/build/tooling/block-explorer/getting-started.html", }, ]); diff --git a/packages/app/tests/e2e/features/redirection/redirectionSet1.feature b/packages/app/tests/e2e/features/redirection/redirectionSet1.feature index ab2e4c44a9..70698f7185 100644 --- a/packages/app/tests/e2e/features/redirection/redirectionSet1.feature +++ b/packages/app/tests/e2e/features/redirection/redirectionSet1.feature @@ -13,7 +13,7 @@ Feature: Redirection Examples: | Extra button name | url | - | Docs | https://era.zksync.io/docs/dev/ | + | Docs | https://docs.zksync.io/build/tooling/block-explorer/getting-started.html | | Terms | https://zksync.io/terms | | Contact | https://zksync.io/contact | @@ -32,7 +32,7 @@ Feature: Redirection @id251 Scenario: Verify redirection for Documentation link Given I click by text "Documentation" - Then New page have "https://era.zksync.io/docs/dev/" address + Then New page have "https://docs.zksync.io/build/tooling/block-explorer/getting-started.html" address @id252 Scenario Outline: Verify redirection for "" in BE menu From 3f1f526b176fa1f0fd2919216443780a463e2557 Mon Sep 17 00:00:00 2001 From: Vasyl Ivanchuk Date: Tue, 16 Jan 2024 14:18:36 +0200 Subject: [PATCH 2/2] fix: remaining docs links --- packages/app/src/components/FeeData.vue | 2 +- packages/app/src/views/ContractVerificationView.vue | 4 ++-- packages/app/tests/components/FeeData.spec.ts | 6 +++--- packages/app/tests/components/TheFooter.spec.ts | 4 +++- packages/app/tests/components/TheHeader.spec.ts | 2 +- packages/app/tests/views/ContractVerificationView.spec.ts | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/app/src/components/FeeData.vue b/packages/app/src/components/FeeData.vue index 93c2879d80..037eda82a6 100644 --- a/packages/app/src/components/FeeData.vue +++ b/packages/app/src/components/FeeData.vue @@ -40,7 +40,7 @@ {{ t("transactions.table.feeDetails.whatIsPaymaster") }} diff --git a/packages/app/src/views/ContractVerificationView.vue b/packages/app/src/views/ContractVerificationView.vue index f6581a0b5a..0e7e8bd339 100644 --- a/packages/app/src/views/ContractVerificationView.vue +++ b/packages/app/src/views/ContractVerificationView.vue @@ -16,7 +16,7 @@ @@ -84,7 +84,7 @@ class="label-inline-block" > {{ t(`contractVerification.form.${selectedZkCompiler.name}Version.details`) }} { await fireEvent.click(container.querySelector(".toggle-button")!); const link = container.querySelector(".refunded-link"); expect(link?.getAttribute("href")).toBe( - "https://era.zksync.io/docs/dev/developer-guides/transactions/fee-model.html#refunds" + "https://docs.zksync.io/build/developer-reference/fee-model.html#refunds" ); expect(link?.getAttribute("target")).toBe("_blank"); expect(link?.textContent).toBe("Why am I being refunded?"); @@ -240,14 +240,14 @@ describe("FeeToken", () => { const refundedLink = container.querySelector(".refunded-link"); expect(refundedLink?.getAttribute("href")).toBe( - "https://era.zksync.io/docs/dev/developer-guides/transactions/fee-model.html#refunds" + "https://docs.zksync.io/build/developer-reference/fee-model.html#refunds" ); expect(refundedLink?.getAttribute("target")).toBe("_blank"); expect(refundedLink?.textContent).toBe("Why is Paymaster being refunded?"); const paymasterLink = container.querySelector(".paymaster-link"); expect(paymasterLink?.getAttribute("href")).toBe( - "https://era.zksync.io/docs/reference/concepts/account-abstraction.html#paymasters" + "https://docs.zksync.io/build/developer-reference/account-abstraction.html#paymasters" ); expect(paymasterLink?.getAttribute("target")).toBe("_blank"); expect(paymasterLink?.textContent).toBe("What is Paymaster?"); diff --git a/packages/app/tests/components/TheFooter.spec.ts b/packages/app/tests/components/TheFooter.spec.ts index b799dc76a7..8ecf1a640d 100644 --- a/packages/app/tests/components/TheFooter.spec.ts +++ b/packages/app/tests/components/TheFooter.spec.ts @@ -24,7 +24,9 @@ describe("TheFooter:", () => { }, }); const links = wrapper.findAll("a"); - expect(links[0].attributes("href")).toBe("https://era.zksync.io/docs/dev/"); + expect(links[0].attributes("href")).toBe( + "https://docs.zksync.io/build/tooling/block-explorer/getting-started.html" + ); expect(links[1].attributes("href")).toBe("https://zksync.io/terms"); expect(links[2].attributes("href")).toBe("https://zksync.io/contact"); }); diff --git a/packages/app/tests/components/TheHeader.spec.ts b/packages/app/tests/components/TheHeader.spec.ts index 693806228c..c409a6cfd1 100644 --- a/packages/app/tests/components/TheHeader.spec.ts +++ b/packages/app/tests/components/TheHeader.spec.ts @@ -63,7 +63,7 @@ describe("TheHeader:", () => { expect(toolsLinks[2].attributes("href")).toBe("https://portal.zksync.io/"); expect(wrapper.findAll(".navigation-container > .navigation-link")[0].attributes("href")).toBe( - "https://era.zksync.io/docs/dev/" + "https://docs.zksync.io/build/tooling/block-explorer/getting-started.html" ); }); it("renders social links", () => { diff --git a/packages/app/tests/views/ContractVerificationView.spec.ts b/packages/app/tests/views/ContractVerificationView.spec.ts index 8f96244a2b..160d4e5117 100644 --- a/packages/app/tests/views/ContractVerificationView.spec.ts +++ b/packages/app/tests/views/ContractVerificationView.spec.ts @@ -309,7 +309,7 @@ describe("ContractVerificationView:", () => { expect(wrapper.find(".docs-link").text()).toEqual("Details"); expect(wrapper.find(".docs-link").attributes("href")).toEqual( - "https://era.zksync.io/docs/tools/block-explorer/contract-verification.html#enter-contract-details" + "https://docs.zksync.io/build/tooling/block-explorer/contract-verification.html#user-interface" ); }); it("resets uploaded files block when clicking on clear button", async () => {