Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading