From 5c089e0605cae73812b5e03294528189c3583fcc Mon Sep 17 00:00:00 2001 From: 7Cedars Date: Thu, 16 Jul 2026 08:39:53 +0100 Subject: [PATCH] fix: CI/CD e2e test not found --- frontend/app/overview/layout.tsx | 7 +------ frontend/package.json | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/app/overview/layout.tsx b/frontend/app/overview/layout.tsx index cedcce9e..c8304a32 100644 --- a/frontend/app/overview/layout.tsx +++ b/frontend/app/overview/layout.tsx @@ -5,15 +5,13 @@ import { useEffect } from 'react'; import { useRouter, usePathname, useParams } from 'next/navigation'; import Link from 'next/link'; import { usePowersStore, useStatusStore, setStatus, setError, useSavedProtocolsStore, setAction, useActionStore } from "@/context/store"; -import { usePrivy, useWallets } from "@privy-io/react-auth"; import { useConnection, useSwitchChain } from "wagmi"; import { usePowers } from "@/hooks/usePowers"; import { usePowersLive } from "@/hooks/usePowersLive"; import { parseChainId } from "@/utils/parsers"; import { ThemeToggle } from '@/components/ThemeToggle'; import { ShareQrButton } from '@/components/ShareQrButton'; -import { useAddressDisplay } from "@/hooks/useAddressDisplay"; -import { ArrowRightStartOnRectangleIcon, CheckCircleIcon, ArrowLeftIcon } from '@heroicons/react/24/outline'; +import { ArrowLeftIcon } from '@heroicons/react/24/outline'; interface OverviewLayoutProps { children: React.ReactNode; @@ -25,8 +23,6 @@ export default function OverviewLayout({ children }: OverviewLayoutProps) { const powers = usePowersStore(); const statusPowers = useStatusStore(); const { savedProtocols, loadSavedProtocols, addProtocol } = useSavedProtocolsStore(); - const { wallets, ready: walletsReady } = useWallets(); - const {ready, authenticated, login, logout, connectWallet} = usePrivy(); const { powers: powersAddress, chainId } = useParams<{ chainId: string, powers: string }>(); const { fetchPowers } = usePowers(); usePowersLive( @@ -36,7 +32,6 @@ export default function OverviewLayout({ children }: OverviewLayoutProps) { const switchChain = useSwitchChain(); const { chain } = useConnection(); const action = useActionStore(); - const { displayName, isLoading } = useAddressDisplay(wallets[0]?.address); const isOverviewPage = pathname === '/overview'; diff --git a/frontend/package.json b/frontend/package.json index ce5f3290..1e3d2010 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,6 +11,7 @@ "start": "next start", "preview": "next start", "test": "playwright test --trace=on", + "test:e2e": "playwright test --trace=on", "test:report": "playwright test --trace=on --reporter=html && playwright show-report", "lint": "eslint . --ext .ts,.tsx,.js,.jsx", "lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix"