diff --git a/apps/laboratory/tests/shared/validators/WalletValidator.ts b/apps/laboratory/tests/shared/validators/WalletValidator.ts index 91239bfddd..2f7a0305ae 100644 --- a/apps/laboratory/tests/shared/validators/WalletValidator.ts +++ b/apps/laboratory/tests/shared/validators/WalletValidator.ts @@ -3,32 +3,17 @@ import type { Locator, Page } from '@playwright/test' export class WalletValidator { private readonly gotoSessions: Locator - private readonly vercelPreview: Locator constructor(public readonly page: Page) { this.gotoSessions = this.page.getByTestId('sessions') - this.vercelPreview = this.page.locator('css=vercel-live-feedback') - } - - async reload() { - await this.page.reload() - await this.page.getByTestId('wc-connect').isVisible() - await this.page.waitForTimeout(1000) - const isVercelPreview = (await this.vercelPreview.count()) > 0 - if (isVercelPreview) { - await this.vercelPreview.evaluate((iframe: HTMLIFrameElement) => iframe.remove()) - } } async expectConnected() { - await this.reload() await this.gotoSessions.click() await expect(this.page.getByTestId('session-card')).toBeVisible() } async expectDisconnected() { - await this.page.waitForTimeout(1000) - await this.reload() await this.gotoSessions.click() await expect(this.page.getByTestId('session-card')).not.toBeVisible() }