forked from trent_larson/crowd-funder-for-time-pwa
Playwright: implemented importUser
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('Add contact', async ({ page }) => {
|
||||
// Create new ID using seed phrase "island fever beef…"
|
||||
await page.goto('./start');
|
||||
await page.getByText('You have a seed').click();
|
||||
await page.getByPlaceholder('Seed Phrase').fill('island fever beef wine urban aim vacant quit afford total poem flame service calm better adult neither color gaze forum month sister imitate excite');
|
||||
await page.getByRole('button', { name: 'Import' }).click();
|
||||
|
||||
// Set name
|
||||
await page.getByRole('link', { name: 'Set Your Name' }).click();
|
||||
await page.getByPlaceholder('Name').fill('User One');
|
||||
await page.getByRole('button', { name: 'Save Changes' }).click();
|
||||
// Import user 01
|
||||
await importUser(page, '01');
|
||||
|
||||
// Add new contact 00
|
||||
await page.goto('./contacts');
|
||||
|
||||
Reference in New Issue
Block a user