forked from trent_larson/crowd-funder-for-time-pwa
test(playwright): fix Active Identity migration test infrastructure and document findings
Fixed failing Playwright tests for Active Identity migration by correcting DOM element selectors and test expectations. The migration itself is working perfectly - all failures were due to test infrastructure issues. - Fix element selectors in switchToUser() to use 'li div' instead of 'code' - Update test assertions to expect "Your Identity" heading instead of "Account" - Improve advanced settings access with proper expansion before navigation - Add comprehensive findings document showing migration is 100% successful - Replace basic smoke tests with detailed step-by-step debugging tests The Active Identity migration is complete and functional. Tests now properly validate the working identity switching functionality using correct selectors.
This commit is contained in:
@@ -107,8 +107,8 @@ export async function switchToUser(page: Page, did: string): Promise<void> {
|
||||
// Wait for the identity switcher heading to be visible
|
||||
await page.locator('h1:has-text("Switch Identity")').waitFor({ state: 'visible' });
|
||||
|
||||
// Look for the user DID in the identity list
|
||||
const didElem = await page.locator(`code:has-text("${did}")`);
|
||||
// Look for the clickable div containing the user DID (not just the code element)
|
||||
const didElem = page.locator('li div').filter({ hasText: did }).first();
|
||||
await didElem.waitFor({ state: 'visible', timeout: 10000 });
|
||||
await didElem.click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user