Skip to content

Commit

Permalink
fix: remaining docs links
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Jan 16, 2024
1 parent 429b761 commit 3f1f526
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/components/FeeData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<a
v-if="feeData?.isPaidByPaymaster"
class="paymaster-link"
href="https://era.zksync.io/docs/reference/concepts/account-abstraction.html#paymasters"
href="https://docs.zksync.io/build/developer-reference/account-abstraction.html#paymasters"
target="_blank"
>{{ t("transactions.table.feeDetails.whatIsPaymaster") }}</a
>
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/views/ContractVerificationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Alert type="notification" class="full-grid-width">
<i18n-t scope="global" keypath="contractVerification.resources.title" tag="span">
<template #hardhat>
<a href="https://era.zksync.io/docs/tools/hardhat/hardhat-zksync-verify.html" target="_blank">
<a href="https://docs.zksync.io/build/tooling/hardhat/hardhat-zksync-verify.html" target="_blank">
{{ t("contractVerification.resources.links.hardhat") }}
</a>
</template>
Expand Down Expand Up @@ -84,7 +84,7 @@
class="label-inline-block"
>
<a
href="https://era.zksync.io/docs/tools/block-explorer/contract-verification.html#enter-contract-details"
href="https://docs.zksync.io/build/tooling/block-explorer/contract-verification.html#user-interface"
target="_blank"
class="docs-link"
>{{ t(`contractVerification.form.${selectedZkCompiler.name}Version.details`) }}</a
Expand Down
6 changes: 3 additions & 3 deletions packages/app/tests/components/FeeData.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ describe("FeeToken", () => {
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?");
Expand Down Expand Up @@ -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?");
Expand Down
4 changes: 3 additions & 1 deletion packages/app/tests/components/TheFooter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tests/components/TheHeader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tests/views/ContractVerificationView.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3f1f526

Please sign in to comment.