Skip to content

Commit

Permalink
Add e2e tests to private key export
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Oct 17, 2023
1 parent 22cd53c commit 16c8879
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion playwright/tests/toolbar.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { test, expect } from '@playwright/test'
import { password } from '../utils/test-inputs'
import { password, privateKey } from '../utils/test-inputs'
import { fillPrivateKeyAndPassword } from '../utils/fillPrivateKey'
import { warnSlowApi } from '../utils/warnSlowApi'
import { mockApi } from '../utils/mockApi'
Expand Down Expand Up @@ -53,3 +53,15 @@ test.describe('Profile tab', () => {
await expect(page.getByText('Loading', { exact: true })).toBeHidden()
})
})

test.describe('My Accounts tab', () => {
test('should get a private key', async ({ page }) => {
await page.goto('/open-wallet/private-key')
await fillPrivateKeyAndPassword(page)
await page.getByTestId('account-selector').click()
await page.getByText('Manage').click()
await page.getByText('Export Private Key').click()
await page.getByText('I understand, reveal my private key').click()
await expect(page.getByText(privateKey)).toBeVisible()
})
})

0 comments on commit 16c8879

Please sign in to comment.