Jose Olarte III
4 months ago
1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
import { test, expect } from '@playwright/test'; |
||||
|
|
||||
|
test('Create new ID from seed', async ({ page }) => { |
||||
|
// Create new ID using seed phrase "rigid shrug mobile…"
|
||||
|
await page.goto('https://timesafari.app/start'); |
||||
|
await page.getByText('No, I have a seed').click(); |
||||
|
await page.getByPlaceholder('Seed Phrase').click(); |
||||
|
await page.getByPlaceholder('Seed Phrase').fill('rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage'); |
||||
|
await page.getByRole('button', { name: 'Import' }).click(); |
||||
|
|
||||
|
// Set name
|
||||
|
await page.getByRole('link', { name: 'Set Your Name' }).click(); |
||||
|
await page.getByPlaceholder('Name').click(); |
||||
|
await page.getByPlaceholder('Name').fill('Rigid Shrug Mobile'); |
||||
|
await page.getByRole('button', { name: 'Save Changes' }).click(); |
||||
|
|
||||
|
// Check DID
|
||||
|
await expect(page.getByRole('code')).toContainText('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F'); |
||||
|
}); |
Loading…
Reference in new issue