fix(explorer): harden operations smoke test and surface note placement
Move extended token-list label to the operations intro, wait for network idle before asserting, and clear conflicting NO_COLOR/FORCE_COLOR in Playwright config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -181,6 +181,7 @@ export default function OperationsHubPage({
|
|||||||
<p className="text-base leading-7 text-gray-600 dark:text-gray-400 sm:text-lg sm:leading-8">
|
<p className="text-base leading-7 text-gray-600 dark:text-gray-400 sm:text-lg sm:leading-8">
|
||||||
{page.description}
|
{page.description}
|
||||||
</p>
|
</p>
|
||||||
|
<TokenListSurfaceNote className="mt-3 text-sm text-gray-600 dark:text-gray-400" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{page.note ? (
|
{page.note ? (
|
||||||
@@ -250,7 +251,6 @@ export default function OperationsHubPage({
|
|||||||
<div className="mt-2 text-sm text-gray-600 dark:text-gray-400">
|
<div className="mt-2 text-sm text-gray-600 dark:text-gray-400">
|
||||||
Chains · {(tokenList?.tokens || []).length} tokens across {tokenChainCoverage} networks
|
Chains · {(tokenList?.tokens || []).length} tokens across {tokenChainCoverage} networks
|
||||||
</div>
|
</div>
|
||||||
<TokenListSurfaceNote className="mt-2 text-xs text-gray-500 dark:text-gray-400" />
|
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Card className="border border-gray-200 dark:border-gray-700">
|
<Card className="border border-gray-200 dark:border-gray-700">
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { defineConfig, devices } from '@playwright/test';
|
import { defineConfig, devices } from '@playwright/test';
|
||||||
|
|
||||||
// Avoid Node warning: "NO_COLOR env is ignored due to FORCE_COLOR"
|
// Cursor/CI often sets both; Node warns when they conflict.
|
||||||
if (process.env.NO_COLOR !== undefined) {
|
delete process.env.NO_COLOR;
|
||||||
delete process.env.FORCE_COLOR;
|
delete process.env.FORCE_COLOR;
|
||||||
}
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
testDir: './scripts',
|
testDir: './scripts',
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ test.describe('Explorer sprint smoke', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('operations hub loads extended token list note', async ({ page }) => {
|
test('operations hub loads extended token list note', async ({ page }) => {
|
||||||
await page.goto(`${EXPLORER_URL}/operations`, { waitUntil: 'domcontentloaded', timeout: 20000 })
|
await page.goto(`${EXPLORER_URL}/operations`, { waitUntil: 'networkidle', timeout: 30000 })
|
||||||
await expect(page.getByText(/Extended Metamask dual-chain catalog/i)).toBeVisible({ timeout: 10000 })
|
await expect(page.getByRole('heading', { name: /Operations Hub/i })).toBeVisible({ timeout: 10000 })
|
||||||
|
await expect(page.getByText(/Extended Metamask dual-chain catalog/i).first()).toBeVisible({ timeout: 10000 })
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user