From 9ec84a91dbd97c48f13a54e73ebb3c2ed5523351 Mon Sep 17 00:00:00 2001 From: Ryuji Eguchi Date: Thu, 30 Nov 2023 09:54:42 +1100 Subject: [PATCH] check all pages in e2e/production.spec.ts --- e2e/production.spec.ts | 48 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/e2e/production.spec.ts b/e2e/production.spec.ts index 63a1d87c8..78c717332 100644 --- a/e2e/production.spec.ts +++ b/e2e/production.spec.ts @@ -1,7 +1,51 @@ import { test, expect } from '@playwright/test' -test('has title', async ({ page }) => { +test('top page', async ({ page }) => { await page.goto('https://steexp.com/') + await expect(page).toHaveTitle('Stellar Explorer | Home') +}) + +test('operations', async ({ page }) => { + await page.goto('https://steexp.com/operations') + await expect(page).toHaveTitle('Stellar Explorer | Operations') +}) + +test('transactions', async ({ page }) => { + await page.goto('https://steexp.com/txs') + await expect(page).toHaveTitle('Stellar Explorer | Transactions') +}) + +test('ledgers', async ({ page }) => { + await page.goto('https://steexp.com/ledgers') + await expect(page).toHaveTitle('Stellar Explorer | Ledgers') +}) + +test('assets', async ({ page }) => { + await page.goto('https://steexp.com/assets') + await expect(page).toHaveTitle('Stellar Explorer | Assets') +}) + +test('anchors', async ({ page }) => { + await page.goto('https://steexp.com/anchors') + await expect(page).toHaveTitle('Stellar Explorer | Anchors') +}) + +test('exchanges', async ({ page }) => { + await page.goto('https://steexp.com/exchanges') + await expect(page).toHaveTitle('Stellar Explorer | Exchanges') +}) + +test('effects', async ({ page }) => { + await page.goto('https://steexp.com/effects') + await expect(page).toHaveTitle('Stellar Explorer | Effects') +}) + +test('payments', async ({ page }) => { + await page.goto('https://steexp.com/payments') + await expect(page).toHaveTitle('Stellar Explorer | Payments') +}) - await expect(page).toHaveTitle(/Stellar Explorer/) +test('trades', async ({ page }) => { + await page.goto('https://steexp.com/trades') + await expect(page).toHaveTitle('Stellar Explorer | Trades') })