forked from trent_larson/crowd-funder-for-time-pwa
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user