|
1 | 1 | import { extensionViewport } from '../utils/extensionTestExtend' |
2 | 2 | import { warnSlowApi } from '../utils/warnSlowApi' |
3 | 3 | import { mockApiMoreData } from '../utils/mockApi' |
4 | | -import { privateKey } from '../../src/utils/__fixtures__/test-inputs' |
| 4 | +import { ethAccount, privateKey } from '../../src/utils/__fixtures__/test-inputs' |
5 | 5 | import { test, expect, Page } from '@playwright/test' |
6 | 6 |
|
7 | 7 | const screenshotCss = ` |
@@ -105,4 +105,34 @@ test('make screenshots for Chrome Web Store', async ({ page }) => { |
105 | 105 | animations: 'disabled', |
106 | 106 | omitBackground: true, |
107 | 107 | }) |
| 108 | + |
| 109 | + await frame.getByRole('button', { name: 'Deposit to ParaTime' }).click() |
| 110 | + await frame.getByRole('textbox', { name: 'Select a ParaTime' }).click() |
| 111 | + await page.screenshot({ |
| 112 | + path: './screenshots/extension-store-6.png', |
| 113 | + style: screenshotCss, |
| 114 | + animations: 'disabled', |
| 115 | + omitBackground: true, |
| 116 | + }) |
| 117 | + |
| 118 | + await frame.getByRole('option', { name: 'Sapphire' }).click() |
| 119 | + await frame.getByRole('button', { name: 'Next' }).click() |
| 120 | + await frame.getByRole('textbox', { name: 'recipient' }).fill(ethAccount.address) |
| 121 | + await frame.getByRole('button', { name: 'Next' }).click() |
| 122 | + |
| 123 | + await frame.getByRole('textbox', { name: 'amount' }).fill('10.0') |
| 124 | + await page.screenshot({ |
| 125 | + path: './screenshots/extension-store-7.png', |
| 126 | + style: screenshotCss, |
| 127 | + animations: 'disabled', |
| 128 | + omitBackground: true, |
| 129 | + }) |
| 130 | + |
| 131 | + await frame.getByRole('button', { name: 'Next' }).click() |
| 132 | + await page.screenshot({ |
| 133 | + path: './screenshots/extension-store-8.png', |
| 134 | + style: screenshotCss, |
| 135 | + animations: 'disabled', |
| 136 | + omitBackground: true, |
| 137 | + }) |
108 | 138 | }) |
0 commit comments