From eea19fcb3fef1062090965e6e7a8b0c130e07710 Mon Sep 17 00:00:00 2001 From: Chloe Gao Date: Thu, 10 Oct 2024 17:10:31 +0200 Subject: [PATCH] fix firefox --- .../pages/snap-simple-keyring-page.ts | 4 ++-- .../account}/snap-account-transfers.spec.ts | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) rename test/e2e/{accounts => tests/account}/snap-account-transfers.spec.ts (86%) diff --git a/test/e2e/page-objects/pages/snap-simple-keyring-page.ts b/test/e2e/page-objects/pages/snap-simple-keyring-page.ts index ea29bcfb9d11..0149880a3d9a 100644 --- a/test/e2e/page-objects/pages/snap-simple-keyring-page.ts +++ b/test/e2e/page-objects/pages/snap-simple-keyring-page.ts @@ -176,7 +176,7 @@ class SnapSimpleKeyringPage { ); // Get the first request from the requests list on simple keyring snap page - await this.driver.clickElementUsingMouseMove(this.listRequestsSection); + await this.driver.clickElement(this.listRequestsSection); await this.driver.clickElement(this.listRequestsButton); const requestJSON = await ( await this.driver.waitForSelector(this.requestMessage) @@ -196,7 +196,7 @@ class SnapSimpleKeyringPage { console.log( 'Reject snap account transaction on Snap Simple Keyring page', ); - await this.driver.clickElement(this.rejectRequestSection); + await this.driver.clickElementUsingMouseMove(this.rejectRequestSection); await this.driver.fill( this.rejectRequestIdInput, JSON.parse(requestJSON)[0].id, diff --git a/test/e2e/accounts/snap-account-transfers.spec.ts b/test/e2e/tests/account/snap-account-transfers.spec.ts similarity index 86% rename from test/e2e/accounts/snap-account-transfers.spec.ts rename to test/e2e/tests/account/snap-account-transfers.spec.ts index 923ac6f7e1ff..23cc5d510eb2 100644 --- a/test/e2e/accounts/snap-account-transfers.spec.ts +++ b/test/e2e/tests/account/snap-account-transfers.spec.ts @@ -4,18 +4,18 @@ import { PRIVATE_KEY_TWO, WINDOW_TITLES, withFixtures, -} from '../helpers'; -import { DEFAULT_FIXTURE_ACCOUNT } from '../constants'; -import { Driver } from '../webdriver/driver'; -import { Ganache } from '../seeder/ganache'; -import AccountListPage from '../page-objects/pages/account-list-page'; -import FixtureBuilder from '../fixture-builder'; -import HeaderNavbar from '../page-objects/pages/header-navbar'; -import HomePage from '../page-objects/pages/homepage'; -import SnapSimpleKeyringPage from '../page-objects/pages/snap-simple-keyring-page'; -import { installSnapSimpleKeyring } from '../page-objects/flows/snap-simple-keyring.flow'; -import { loginWithBalanceValidation } from '../page-objects/flows/login.flow'; -import { sendTransactionWithSnapAccount } from '../page-objects/flows/send-transaction.flow'; +} from '../../helpers'; +import { DEFAULT_FIXTURE_ACCOUNT } from '../../constants'; +import { Driver } from '../../webdriver/driver'; +import { Ganache } from '../../seeder/ganache'; +import AccountListPage from '../../page-objects/pages/account-list-page'; +import FixtureBuilder from '../../fixture-builder'; +import HeaderNavbar from '../../page-objects/pages/header-navbar'; +import HomePage from '../../page-objects/pages/homepage'; +import SnapSimpleKeyringPage from '../../page-objects/pages/snap-simple-keyring-page'; +import { installSnapSimpleKeyring } from '../../page-objects/flows/snap-simple-keyring.flow'; +import { loginWithBalanceValidation } from '../../page-objects/flows/login.flow'; +import { sendTransactionWithSnapAccount } from '../../page-objects/flows/send-transaction.flow'; describe('Snap Account Transfers @no-mmi', function (this: Suite) { it('can import a private key and transfer 1 ETH (sync flow)', async function () {