Skip to content

Commit 0263965

Browse files
lukaw3dlukaw3d
authored andcommitted
Screenshot more ParaTime pages
1 parent cdb0bde commit 0263965

4 files changed

Lines changed: 31 additions & 1 deletion

File tree

playwright/screenshots/chrome-webstore-screenshots.spec.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { extensionViewport } from '../utils/extensionTestExtend'
22
import { warnSlowApi } from '../utils/warnSlowApi'
33
import { mockApiMoreData } from '../utils/mockApi'
4-
import { privateKey } from '../../src/utils/__fixtures__/test-inputs'
4+
import { ethAccount, privateKey } from '../../src/utils/__fixtures__/test-inputs'
55
import { test, expect, Page } from '@playwright/test'
66

77
const screenshotCss = `
@@ -105,4 +105,34 @@ test('make screenshots for Chrome Web Store', async ({ page }) => {
105105
animations: 'disabled',
106106
omitBackground: true,
107107
})
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+
})
108138
})
58.1 KB
Loading
64.1 KB
Loading
82 KB
Loading

0 commit comments

Comments
 (0)