Skip to content

Commit

Permalink
check all pages in e2e/production.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-ryuji committed Nov 29, 2023
1 parent 52d0304 commit 9ec84a9
Showing 1 changed file with 46 additions and 2 deletions.
48 changes: 46 additions & 2 deletions e2e/production.spec.ts
Original file line number Diff line number Diff line change
@@ -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')
})

0 comments on commit 9ec84a9

Please sign in to comment.