docs: enhance TESTING.md troubleshooting section with detailed Playwright command explanation

Add comprehensive breakdown of the --headed test debugging command, explaining each parameter and its purpose for visual test debugging. Resolves "New offers for another user" test debugging workflow.
This commit is contained in:
Matthew Raymer
2025-07-27 02:10:42 +00:00
parent e04c9f3626
commit 820fb29021
2 changed files with 15 additions and 2 deletions

View File

@@ -99,11 +99,9 @@ export async function switchToUser(page: Page, did: string): Promise<void> {
const switchIdentityLink = page.locator("#switch-identity-link");
if (await switchIdentityLink.isHidden()) {
console.log("Switch identity link is hidden, clicking advanced settings");
await page.getByTestId("advancedSettings").click();
await switchIdentityLink.click();
} else {
console.log("Switch identity link is visible, clicking it");
await switchIdentityLink.click();
}