Skip to content

Commit

Permalink
fix firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
chloeYue committed Oct 10, 2024
1 parent 6fa2d2e commit eea19fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions test/e2e/page-objects/pages/snap-simple-keyring-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit eea19fc

Please sign in to comment.