forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: change import User Zero function
- Use the ./account route to mimic real-world use
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user