fix: clean up "register random person" test #190

Merged
jose merged 2 commits from playwright-test-00-fix into master 2025-09-01 14:00:16 +00:00
Showing only changes of commit e67c97821a - Show all commits

View File

@@ -69,7 +69,7 @@
*/
import { test, expect } from '@playwright/test';
import { createContactName, generateNewEthrUser, importUser } from './testUtils';
import { createContactName, generateNewEthrUser, importUser, importUserFromAccount } from './testUtils';
import { NOTIFY_CONTACT_INVALID_DID } from '../src/constants/notifications';
test('Check activity feed - check that server is running', async ({ page }) => {
@@ -186,7 +186,7 @@ test('Check invalid DID shows error and redirects', async ({ page }) => {
test('Check User 0 can register a random person', async ({ page }) => {
const newDid = await generateNewEthrUser(page); // generate a new user
await importUser(page, "00"); // switch to User Zero
await importUserFromAccount(page, "00"); // switch to User Zero
// As User Zero, add the new user as a contact
await page.goto('./contacts');