Browse Source

Test: new ID from seed phrase

playwright-pwa-install-test
Jose Olarte III 2 months ago
parent
commit
4c8846d65a
  1. 19
      tests/new-id-from-seed.spec.ts

19
tests/new-id-from-seed.spec.ts

@ -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…
Cancel
Save