-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(e2e): Convert to PW transaction test (#16316)
* feat(e2e): Convert to PW transaction test remove forgoten already converted cypress tests lookup-account * chore(e2e): Update rebased tests with a mandatory model cfg
- Loading branch information
Showing
15 changed files
with
105 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
packages/suite-desktop-core/e2e/tests/wallet/blockbook-discovery.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
packages/suite-desktop-core/e2e/tests/wallet/transactions.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { test, expect } from '../../support/fixtures'; | ||
import { graphRangeOptions } from '../../support/pageActions/dashboardActions'; | ||
|
||
const rangeData: { range: graphRangeOptions; label: string }[] = [ | ||
{ range: 'day', label: '1 day' }, | ||
{ range: 'week', label: '1 week' }, | ||
{ range: 'month', label: '1 month' }, | ||
{ range: 'year', label: '1 year' }, | ||
{ range: 'all', label: 'All' }, | ||
]; | ||
|
||
test.describe('Account transactions overview', { tag: ['@group=wallet'] }, () => { | ||
test.use({ emulatorSetupConf: { mnemonic: 'mnemonic_all' } }); | ||
test.beforeEach(async ({ onboardingPage, dashboardPage }) => { | ||
await onboardingPage.completeOnboarding(); | ||
await dashboardPage.discoveryShouldFinish(); | ||
}); | ||
|
||
test('Check graph span and search a transaction by BTC address', async ({ | ||
walletPage, | ||
dashboardPage, | ||
}) => { | ||
await test.step('Cycle thru all time range filters', async () => { | ||
await walletPage.accountButton({ symbol: 'btc' }).click(); | ||
for (const { range, label } of rangeData) { | ||
await dashboardPage.graphRangeSelector(range).click(); | ||
const labelElement = walletPage.transactionSummaryTitle.getByText(label); | ||
await expect(labelElement).toBeVisible(); | ||
} | ||
}); | ||
|
||
const latestTransactionAddress = await test.step('Find the latest transaction', async () => | ||
await walletPage.transactionAddress.first().textContent()); | ||
|
||
if (!latestTransactionAddress) { | ||
throw new Error('No latest transaction found'); | ||
} | ||
|
||
await test.step('Search for latest transaction by its address', async () => { | ||
await walletPage.transactionSearch.fill(latestTransactionAddress); | ||
await expect(walletPage.transactionItem).toHaveCount(1); | ||
await expect(walletPage.transactionItem).toContainText(latestTransactionAddress); | ||
}); | ||
|
||
// go to a certain accounts page and verify you are on that page | ||
// await page.getByTestId('@account-menu/legacy').click(); | ||
// await walletPage.accountButton({ symbol: 'btc', type: 'legacy' }).click(); | ||
}); | ||
}); |
48 changes: 0 additions & 48 deletions
48
packages/suite-web/e2e/tests/wallet/look-up-an-account.test.ts
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
packages/suite-web/e2e/tests/wallet/overview-and-transactions.test.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.