From e629d3a97d57b94f619d8a1667cda71c60a841f1 Mon Sep 17 00:00:00 2001 From: getCryptoAddress <125769450+getCryptoAddress@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:39:11 +0200 Subject: [PATCH] Add robots.txt --- e2e/vue.spec.ts | 14 +++++++++++++- .../robots-chromium-darwin.txt | 4 ++++ .../robots-chromium-linux.txt | 4 ++++ .../robots-firefox-darwin.txt | 4 ++++ e2e/vue.spec.ts-snapshots/robots-firefox-linux.txt | 4 ++++ e2e/vue.spec.ts-snapshots/robots-webkit-darwin.txt | 4 ++++ e2e/vue.spec.ts-snapshots/robots-webkit-linux.txt | 4 ++++ .../sitemap-chromium-darwin.txt | 4 ++++ .../sitemap-chromium-linux.txt | 4 ++++ .../sitemap-firefox-darwin.txt | 4 ++++ .../sitemap-firefox-linux.txt | 4 ++++ .../sitemap-webkit-darwin.txt | 4 ++++ e2e/vue.spec.ts-snapshots/sitemap-webkit-linux.txt | 4 ++++ public/robots.txt | 4 ++++ 14 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 e2e/vue.spec.ts-snapshots/robots-chromium-darwin.txt create mode 100644 e2e/vue.spec.ts-snapshots/robots-chromium-linux.txt create mode 100644 e2e/vue.spec.ts-snapshots/robots-firefox-darwin.txt create mode 100644 e2e/vue.spec.ts-snapshots/robots-firefox-linux.txt create mode 100644 e2e/vue.spec.ts-snapshots/robots-webkit-darwin.txt create mode 100644 e2e/vue.spec.ts-snapshots/robots-webkit-linux.txt create mode 100644 e2e/vue.spec.ts-snapshots/sitemap-chromium-darwin.txt create mode 100644 e2e/vue.spec.ts-snapshots/sitemap-chromium-linux.txt create mode 100644 e2e/vue.spec.ts-snapshots/sitemap-firefox-darwin.txt create mode 100644 e2e/vue.spec.ts-snapshots/sitemap-firefox-linux.txt create mode 100644 e2e/vue.spec.ts-snapshots/sitemap-webkit-darwin.txt create mode 100644 e2e/vue.spec.ts-snapshots/sitemap-webkit-linux.txt create mode 100644 public/robots.txt diff --git a/e2e/vue.spec.ts b/e2e/vue.spec.ts index 7510ba2..ab97238 100644 --- a/e2e/vue.spec.ts +++ b/e2e/vue.spec.ts @@ -2,9 +2,21 @@ import { expect, test } from "@playwright/test"; // See here how to get started: // https://playwright.dev/docs/intro -test("visits the app root url", async ({ page }) => { +test("visits the app root url, sitemap.txt and robots.txt", async ({ + page, +}) => { await page.goto("/"); await expect(page.locator("h1")).toHaveText("Get Crypto Address"); + + if (process.env.PLAYWRIGHT_USE_BUILD) { + await page.goto("/sitemap.txt"); + expect(await page.locator("pre").innerText()).toMatchSnapshot( + "sitemap.txt", + ); + } + + await page.goto("/robots.txt"); + expect(await page.locator("pre").innerText()).toMatchSnapshot("robots.txt"); }); test("check menu items", async ({ page }) => { diff --git a/e2e/vue.spec.ts-snapshots/robots-chromium-darwin.txt b/e2e/vue.spec.ts-snapshots/robots-chromium-darwin.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/robots-chromium-darwin.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt diff --git a/e2e/vue.spec.ts-snapshots/robots-chromium-linux.txt b/e2e/vue.spec.ts-snapshots/robots-chromium-linux.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/robots-chromium-linux.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt diff --git a/e2e/vue.spec.ts-snapshots/robots-firefox-darwin.txt b/e2e/vue.spec.ts-snapshots/robots-firefox-darwin.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/robots-firefox-darwin.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt diff --git a/e2e/vue.spec.ts-snapshots/robots-firefox-linux.txt b/e2e/vue.spec.ts-snapshots/robots-firefox-linux.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/robots-firefox-linux.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt diff --git a/e2e/vue.spec.ts-snapshots/robots-webkit-darwin.txt b/e2e/vue.spec.ts-snapshots/robots-webkit-darwin.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/robots-webkit-darwin.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt diff --git a/e2e/vue.spec.ts-snapshots/robots-webkit-linux.txt b/e2e/vue.spec.ts-snapshots/robots-webkit-linux.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/robots-webkit-linux.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt diff --git a/e2e/vue.spec.ts-snapshots/sitemap-chromium-darwin.txt b/e2e/vue.spec.ts-snapshots/sitemap-chromium-darwin.txt new file mode 100644 index 0000000..6bc9816 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/sitemap-chromium-darwin.txt @@ -0,0 +1,4 @@ +https://getcryptoaddress.github.io/create-wallets/ +https://getcryptoaddress.github.io/paper-wallet-editor/ +https://getcryptoaddress.github.io/paper-wallets/ +https://getcryptoaddress.github.io/ \ No newline at end of file diff --git a/e2e/vue.spec.ts-snapshots/sitemap-chromium-linux.txt b/e2e/vue.spec.ts-snapshots/sitemap-chromium-linux.txt new file mode 100644 index 0000000..6bc9816 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/sitemap-chromium-linux.txt @@ -0,0 +1,4 @@ +https://getcryptoaddress.github.io/create-wallets/ +https://getcryptoaddress.github.io/paper-wallet-editor/ +https://getcryptoaddress.github.io/paper-wallets/ +https://getcryptoaddress.github.io/ \ No newline at end of file diff --git a/e2e/vue.spec.ts-snapshots/sitemap-firefox-darwin.txt b/e2e/vue.spec.ts-snapshots/sitemap-firefox-darwin.txt new file mode 100644 index 0000000..6bc9816 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/sitemap-firefox-darwin.txt @@ -0,0 +1,4 @@ +https://getcryptoaddress.github.io/create-wallets/ +https://getcryptoaddress.github.io/paper-wallet-editor/ +https://getcryptoaddress.github.io/paper-wallets/ +https://getcryptoaddress.github.io/ \ No newline at end of file diff --git a/e2e/vue.spec.ts-snapshots/sitemap-firefox-linux.txt b/e2e/vue.spec.ts-snapshots/sitemap-firefox-linux.txt new file mode 100644 index 0000000..6bc9816 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/sitemap-firefox-linux.txt @@ -0,0 +1,4 @@ +https://getcryptoaddress.github.io/create-wallets/ +https://getcryptoaddress.github.io/paper-wallet-editor/ +https://getcryptoaddress.github.io/paper-wallets/ +https://getcryptoaddress.github.io/ \ No newline at end of file diff --git a/e2e/vue.spec.ts-snapshots/sitemap-webkit-darwin.txt b/e2e/vue.spec.ts-snapshots/sitemap-webkit-darwin.txt new file mode 100644 index 0000000..6bc9816 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/sitemap-webkit-darwin.txt @@ -0,0 +1,4 @@ +https://getcryptoaddress.github.io/create-wallets/ +https://getcryptoaddress.github.io/paper-wallet-editor/ +https://getcryptoaddress.github.io/paper-wallets/ +https://getcryptoaddress.github.io/ \ No newline at end of file diff --git a/e2e/vue.spec.ts-snapshots/sitemap-webkit-linux.txt b/e2e/vue.spec.ts-snapshots/sitemap-webkit-linux.txt new file mode 100644 index 0000000..6bc9816 --- /dev/null +++ b/e2e/vue.spec.ts-snapshots/sitemap-webkit-linux.txt @@ -0,0 +1,4 @@ +https://getcryptoaddress.github.io/create-wallets/ +https://getcryptoaddress.github.io/paper-wallet-editor/ +https://getcryptoaddress.github.io/paper-wallets/ +https://getcryptoaddress.github.io/ \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..5904462 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: + +Sitemap: https://getCryptoAddress.github.io/sitemap.txt