-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(explorer): add data-testids to the identity part of the header.
- Loading branch information
1 parent
f368602
commit 9110474
Showing
3 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'explorer': minor | ||
--- | ||
|
||
Add test IDs to the app identity section of the header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import { test, expect } from '@playwright/test' | ||
import { fillTextInputByName } from '@siafoundation/e2e' | ||
|
||
test('homepage', async ({ page }) => { | ||
await page.goto('/') | ||
await expect(page.getByText('siascan')).toBeVisible() | ||
await expect(page.getByText('zen')).toBeVisible() | ||
await expect(page.getByTestId('explorer-identity-appName')).toBeVisible() | ||
await expect(page.getByTestId('explorer-identity-network')).toBeVisible() | ||
}) | ||
|
||
test('look up and view a block by block number', async ({ page }) => { | ||
await page.goto('/') | ||
await fillTextInputByName(page, 'query', '3000') | ||
await page.keyboard.press('Enter') | ||
await expect(page.getByRole('link').getByText('3,000')).toBeVisible() | ||
await expect(page.getByText('1 transactions')).toBeVisible() | ||
await expect(page.getByText('000000...647f7f')).toBeVisible() | ||
await page.goto('/block/60000') | ||
await expect(page.getByRole('link').getByText('60,000')).toBeVisible() | ||
await expect(page.getByText('11 transactions')).toBeVisible() | ||
await expect(page.getByText('000000...fa54c1')).toBeVisible() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters