forked from trent_larson/crowd-funder-for-time-pwa
add tests for new activity of offers-directly-to-user
This commit is contained in:
@@ -34,10 +34,12 @@ export async function importUser(page: Page, id?: string): Promise<string> {
|
||||
|
||||
// This is to switch to someone already in the identity table. It doesn't include registration.
|
||||
export async function switchToUser(page: Page, did: string): Promise<void> {
|
||||
// await page.goto('./account');
|
||||
// await page.getByRole('heading', { name: 'Advanced' }).click();
|
||||
// await page.getByRole('link', { name: 'Switch Identifier' }).click();
|
||||
await page.goto('./identity-switcher');
|
||||
// This is the direct approach but users have to tap on things so we'll do that instead.
|
||||
//await page.goto('./identity-switcher');
|
||||
|
||||
await page.goto('./account');
|
||||
await page.getByRole('heading', { name: 'Advanced' }).click();
|
||||
await page.getByRole('link', { name: 'Switch Identifier' }).click();
|
||||
const didElem = await page.locator(`code:has-text("${did}")`);
|
||||
await didElem.isVisible();
|
||||
await didElem.click();
|
||||
|
||||
Reference in New Issue
Block a user