Skip to content

Commit 847920d

Browse files
Debug unexpected issues
1 parent 11d068d commit 847920d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/playwright/utils/CsrfManager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ export class CsrfManager
5959
const input = dom.window.document.querySelector(
6060
'input[name="_glpi_csrf_token"]'
6161
) as HTMLInputElement;
62+
63+
if (input.value === null) {
64+
throw new Error("Unexpected body content: ${body}");
65+
}
66+
6267
return input.value;
6368
}
6469
}

0 commit comments

Comments
 (0)