tweak tests for clarity

This commit is contained in:
2025-02-28 12:17:22 -07:00
parent 8957fac5f9
commit 155cfa79b7
3 changed files with 11 additions and 7 deletions

View File

@@ -33,6 +33,13 @@ export async function importUser(page: Page, id?: string): Promise<string> {
return did;
}
export async function importUserAndCloseOnboarding(page: Page, id?: string): Promise<string> {
const did = await importUser(page, id);
await page.goto('./');
await page.getByTestId('closeOnboardingAndFinish').click();
return did;
}
// 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> {
// This is the direct approach but users have to tap on things so we'll do that instead.