|
@ -32,11 +32,10 @@ test('Add contact, record gift, confirm gift', async ({ page }) => { |
|
|
await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F, User #000'); |
|
|
await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F, User #000'); |
|
|
await page.locator('button > svg.fa-plus').click(); |
|
|
await page.locator('button > svg.fa-plus').click(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeVisible(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeVisible(); |
|
|
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss alert
|
|
|
await page.locator('div[role="alert"] button:has-text("No")').click(); // don't register
|
|
|
|
|
|
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
|
|
|
await expect(page.locator('div[role="alert"] button > svg.fa-xmark')).toBeHidden(); // ensure alert is gone
|
|
|
await expect(page.locator('div[role="alert"] button > svg.fa-xmark')).toBeHidden(); // ensure alert is gone
|
|
|
|
|
|
|
|
|
await page.locator('div[role="alert"] button:has-text("Cancel")').click(); |
|
|
|
|
|
|
|
|
|
|
|
// Verify added contact
|
|
|
// Verify added contact
|
|
|
await expect(page.locator('li.border-b')).toContainText('User #000'); |
|
|
await expect(page.locator('li.border-b')).toContainText('User #000'); |
|
|
|
|
|
|
|
@ -97,8 +96,8 @@ test('Add contact, copy details, delete, and import various ways', async ({ page |
|
|
await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x111d15564f824D56C7a07b913aA7aDd03382aA39, User #111'); |
|
|
await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x111d15564f824D56C7a07b913aA7aDd03382aA39, User #111'); |
|
|
await page.locator('button > svg.fa-plus').click(); |
|
|
await page.locator('button > svg.fa-plus').click(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeVisible(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeVisible(); |
|
|
await page.locator('div[role="alert"] button:has-text("No")').click(); |
|
|
await page.locator('div[role="alert"] button:has-text("No")').click(); // don't register
|
|
|
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); |
|
|
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
|
|
|
// wait for the alert to disappear
|
|
|
// wait for the alert to disappear
|
|
|
await expect(page.locator('div[role="alert"]')).toBeHidden(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeHidden(); |
|
|
|
|
|
|
|
@ -106,8 +105,8 @@ test('Add contact, copy details, delete, and import various ways', async ({ page |
|
|
await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x222BB77E6Ff3774d34c751f3c1260866357B677b, User #222, asdf1234'); |
|
|
await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x222BB77E6Ff3774d34c751f3c1260866357B677b, User #222, asdf1234'); |
|
|
await page.locator('button > svg.fa-plus').click(); |
|
|
await page.locator('button > svg.fa-plus').click(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeVisible(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeVisible(); |
|
|
await page.locator('div[role="alert"] button:has-text("No")').click(); |
|
|
await page.locator('div[role="alert"] button:has-text("No")').click(); // don't register
|
|
|
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); |
|
|
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
|
|
|
await expect(page.locator('div[role="alert"]')).toBeHidden(); |
|
|
await expect(page.locator('div[role="alert"]')).toBeHidden(); |
|
|
|
|
|
|
|
|
await expect(page.getByTestId('contactListItem')).toHaveCount(2); |
|
|
await expect(page.getByTestId('contactListItem')).toHaveCount(2); |
|
|