diff --git a/tests/new-id-from-seed.spec.ts b/tests/new-id-from-seed.spec.ts new file mode 100644 index 000000000..26d11cbd6 --- /dev/null +++ b/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'); +}); \ No newline at end of file