fix(explorer): harden operations smoke test and surface note placement
Some checks failed
Deploy Explorer Live / deploy (push) Failing after 13s
Validate Explorer / frontend (push) Successful in 1m26s
Validate Explorer / smoke-e2e (push) Failing after 1m29s

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:
defiQUG
2026-05-22 20:53:27 -07:00
parent 7a7dfca221
commit 6a64d2fec6
3 changed files with 7 additions and 7 deletions

View File

@@ -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">

View File

@@ -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',

View File

@@ -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 })
}) })
}) })