From 7a5276246be69189d952049e399eae9e2037bf9c Mon Sep 17 00:00:00 2001 From: enesozturk Date: Fri, 26 Apr 2024 10:21:13 +0300 Subject: [PATCH] chore: revert testing changes --- apps/laboratory/tests/shared/pages/ModalPage.ts | 5 ----- apps/laboratory/tests/shared/pages/ModalWalletPage.ts | 1 - 2 files changed, 6 deletions(-) diff --git a/apps/laboratory/tests/shared/pages/ModalPage.ts b/apps/laboratory/tests/shared/pages/ModalPage.ts index 82215ad6e3..2869903031 100644 --- a/apps/laboratory/tests/shared/pages/ModalPage.ts +++ b/apps/laboratory/tests/shared/pages/ModalPage.ts @@ -211,14 +211,9 @@ export class ModalPage { } async switchNetwork(network: string) { - const switchNetworkButton = this.page.getByTestId('w3m-account-select-network') await this.page.getByTestId('account-button').click() await this.page.getByTestId('w3m-account-select-network').click() await this.page.getByTestId(`w3m-network-switch-${network}`).click() - await expect(switchNetworkButton, `Switched network should include ${network}`).toContainText( - network, - { timeout: 5000 } - ) } async clickWalletDeeplink() { diff --git a/apps/laboratory/tests/shared/pages/ModalWalletPage.ts b/apps/laboratory/tests/shared/pages/ModalWalletPage.ts index 670beec3a8..51f8b9a626 100644 --- a/apps/laboratory/tests/shared/pages/ModalWalletPage.ts +++ b/apps/laboratory/tests/shared/pages/ModalWalletPage.ts @@ -16,7 +16,6 @@ export class ModalWalletPage extends ModalPage { } override async switchNetwork(network: string) { - const switchNetworkButton = this.page.getByTestId('account-switch-network-button') await this.page.getByTestId('account-switch-network-button').click() await this.page.getByTestId(`w3m-network-switch-${network}`).click() }