Skip to content

Commit

Permalink
Add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
getCryptoAddress committed Nov 7, 2024
1 parent 41bc468 commit e629d3a
Show file tree
Hide file tree
Showing 14 changed files with 65 additions and 1 deletion.
14 changes: 13 additions & 1 deletion e2e/vue.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/robots-chromium-darwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/robots-chromium-linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/robots-firefox-darwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/robots-firefox-linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/robots-webkit-darwin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/robots-webkit-linux.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/sitemap-chromium-darwin.txt
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/sitemap-chromium-linux.txt
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/sitemap-firefox-darwin.txt
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/sitemap-firefox-linux.txt
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/sitemap-webkit-darwin.txt
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions e2e/vue.spec.ts-snapshots/sitemap-webkit-linux.txt
Original file line number Diff line number Diff line change
@@ -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/
4 changes: 4 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow:

Sitemap: https://getCryptoAddress.github.io/sitemap.txt

0 comments on commit e629d3a

Please sign in to comment.