Skip to content

Commit

Permalink
fix: ledger test
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Oct 28, 2024
1 parent 68255a1 commit 6d18460
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 22 deletions.
118 changes: 96 additions & 22 deletions tests/mocks/mock-stacks-txs.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tests/specs/ledger/ledger.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { TEST_ACCOUNT_1_STX_ADDRESS } from '@tests/mocks/constants';
import { mockMainnetTestAccountStacksConfirmedTxsRequests } from '@tests/mocks/mock-stacks-txs';
import type { HomePage } from '@tests/page-object-models/home.page';
import { makeLedgerTestAccountWalletState } from '@tests/page-object-models/onboarding.page';
import { SettingsSelectors } from '@tests/selectors/settings.selectors';
Expand All @@ -24,6 +25,7 @@ test.describe('App with Ledger', () => {
test.beforeEach(async ({ extensionId, globalPage, onboardingPage }) => {
await globalPage.setupAndUseApiCalls(extensionId);
await onboardingPage.signInWithLedgerAccount(extensionId, state);
await mockMainnetTestAccountStacksConfirmedTxsRequests(globalPage.page);
});

test('that homepage renders correctly', async ({ homePage }) => {
Expand Down

0 comments on commit 6d18460

Please sign in to comment.