Skip to content

Commit

Permalink
#577 change expected titles in production.spec.ts until 577 is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chatch committed Dec 30, 2023
1 parent fd4851f commit aef4454
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions e2e/production.spec.ts
Expand Up @@ -3,18 +3,17 @@ import { clickLinkAndVerify, getFirstLink, verifyOpeningNewPage } from './utils'

const baseUrl = 'https://steexp.com'

const expectedAccountPageTitle =
// 'Stellar Explorer | Account Balances'
'Stellar Explorer | Account'

test('top page', async ({ page }) => {
await page.goto(`${baseUrl}/`)
await expect(page).toHaveTitle('Stellar Explorer | Home')

// Click account link
const accountLink = await getFirstLink(page, 0)
await clickLinkAndVerify(
baseUrl,
page,
accountLink,
'Stellar Explorer | Account Balances',
)
await clickLinkAndVerify(baseUrl, page, accountLink, expectedAccountPageTitle)
})

test('operations', async ({ page }) => {
Expand All @@ -25,12 +24,7 @@ test('operations', async ({ page }) => {

// Click account link
const accountLink = await getFirstLink(page, 0)
await clickLinkAndVerify(
baseUrl,
page,
accountLink,
'Stellar Explorer | Account Balances',
)
await clickLinkAndVerify(baseUrl, page, accountLink, expectedAccountPageTitle)

// Click transaction link
await page.goto(targetUrl)
Expand Down Expand Up @@ -61,12 +55,7 @@ test('transactions', async ({ page }) => {
// Click account link
await page.goto(targetUrl)
const accountLink = await getFirstLink(page, 1)
await clickLinkAndVerify(
baseUrl,
page,
accountLink,
'Stellar Explorer | Account Balances',
)
await clickLinkAndVerify(baseUrl, page, accountLink, expectedAccountPageTitle)

// Click ledger link
await page.goto(targetUrl)
Expand Down Expand Up @@ -141,12 +130,7 @@ test('effects', async ({ page }) => {

// Click account link
const accountLink = await getFirstLink(page, 0)
await clickLinkAndVerify(
baseUrl,
page,
accountLink,
'Stellar Explorer | Account Balances',
)
await clickLinkAndVerify(baseUrl, page, accountLink, expectedAccountPageTitle)
})

test('payments', async ({ page }) => {
Expand All @@ -157,12 +141,7 @@ test('payments', async ({ page }) => {

// Click account link
const accountLink = await getFirstLink(page, 0)
await clickLinkAndVerify(
baseUrl,
page,
accountLink,
'Stellar Explorer | Account Balances',
)
await clickLinkAndVerify(baseUrl, page, accountLink, expectedAccountPageTitle)

// Click transaction link
await page.goto(targetUrl)
Expand All @@ -187,7 +166,7 @@ test('trades', async ({ page }) => {
baseUrl,
page,
account1Link,
'Stellar Explorer | Account Balances',
expectedAccountPageTitle,
)

// Click account 2 link
Expand All @@ -197,7 +176,7 @@ test('trades', async ({ page }) => {
baseUrl,
page,
account2Link,
'Stellar Explorer | Account Balances',
expectedAccountPageTitle,
)
})

Expand Down

0 comments on commit aef4454

Please sign in to comment.