Skip to content

Commit f7779f6

Browse files
Add robots.txt (#32)
1 parent 41bc468 commit f7779f6

14 files changed

+65
-1
lines changed

e2e/vue.spec.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@ import { expect, test } from "@playwright/test";
22

33
// See here how to get started:
44
// https://playwright.dev/docs/intro
5-
test("visits the app root url", async ({ page }) => {
5+
test("visits the app root url, sitemap.txt and robots.txt", async ({
6+
page,
7+
}) => {
68
await page.goto("/");
79
await expect(page.locator("h1")).toHaveText("Get Crypto Address");
10+
11+
if (process.env.PLAYWRIGHT_USE_BUILD) {
12+
await page.goto("/sitemap.txt");
13+
expect(await page.locator("pre").innerText()).toMatchSnapshot(
14+
"sitemap.txt",
15+
);
16+
}
17+
18+
await page.goto("/robots.txt");
19+
expect(await page.locator("pre").innerText()).toMatchSnapshot("robots.txt");
820
});
921

1022
test("check menu items", async ({ page }) => {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://getcryptoaddress.github.io/create-wallets/
2+
https://getcryptoaddress.github.io/paper-wallet-editor/
3+
https://getcryptoaddress.github.io/paper-wallets/
4+
https://getcryptoaddress.github.io/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://getcryptoaddress.github.io/create-wallets/
2+
https://getcryptoaddress.github.io/paper-wallet-editor/
3+
https://getcryptoaddress.github.io/paper-wallets/
4+
https://getcryptoaddress.github.io/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://getcryptoaddress.github.io/create-wallets/
2+
https://getcryptoaddress.github.io/paper-wallet-editor/
3+
https://getcryptoaddress.github.io/paper-wallets/
4+
https://getcryptoaddress.github.io/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://getcryptoaddress.github.io/create-wallets/
2+
https://getcryptoaddress.github.io/paper-wallet-editor/
3+
https://getcryptoaddress.github.io/paper-wallets/
4+
https://getcryptoaddress.github.io/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://getcryptoaddress.github.io/create-wallets/
2+
https://getcryptoaddress.github.io/paper-wallet-editor/
3+
https://getcryptoaddress.github.io/paper-wallets/
4+
https://getcryptoaddress.github.io/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
https://getcryptoaddress.github.io/create-wallets/
2+
https://getcryptoaddress.github.io/paper-wallet-editor/
3+
https://getcryptoaddress.github.io/paper-wallets/
4+
https://getcryptoaddress.github.io/

public/robots.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow:
3+
4+
Sitemap: https://getCryptoAddress.github.io/sitemap.txt

0 commit comments

Comments
 (0)