From 3840690ae3891ca8dd12698ec9886226b6f8e105 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Mon, 21 Jul 2025 18:47:34 +0800 Subject: [PATCH] Fix: switch users to test unregistered contacts --- test-playwright/40-add-contact.spec.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test-playwright/40-add-contact.spec.ts b/test-playwright/40-add-contact.spec.ts index 5f2fe1e8..bd78cbd0 100644 --- a/test-playwright/40-add-contact.spec.ts +++ b/test-playwright/40-add-contact.spec.ts @@ -82,18 +82,18 @@ test('Add contact, record gift, confirm gift', async ({ page }) => { // Combine title prefix with the random string const finalTitle = standardTitle + finalRandomString; - const contactName = 'Contact #000 renamed'; - const userName = 'User #000'; + const contactName = 'Contact #001 renamed'; + const userName = 'User #001'; - // Import user 01 - await importUser(page, '01'); + // Import user 00 + await importUser(page, '00'); // Add new contact await page.goto('./contacts'); - await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F, ' + userName); + await page.getByPlaceholder('URL or DID, Name, Public Key').fill('did:ethr:0x111d15564f824D56C7a07b913aA7aDd03382aA39, ' + userName); await page.locator('button > svg.fa-plus').click(); await expect(page.locator('div[role="alert"] span:has-text("No")')).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 expect(page.locator('div[role="alert"] span:has-text("Contact Added")')).toBeVisible(); 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 @@ -149,7 +149,7 @@ test('Add contact, record gift, confirm gift', async ({ page }) => { await page.getByText('You have a seed').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(); - await expect(page.getByRole('code')).toContainText('did:ethr:0x0000694B58C2cC69658993A90D3840C560f2F51F'); + await expect(page.getByRole('code')).toContainText('did:ethr:0x111d15564f824D56C7a07b913aA7aDd03382aA39'); // Go to home view and look for gift await page.goto('./');