mirror of
https://github.com/httptoolkit/frida-interception-and-unpinning.git
synced 2026-10-01 21:42:10 +02:00
Add hierarchy logging to test failures
This commit is contained in:
@@ -135,6 +135,17 @@ describe('Test Android unpinning', function () {
|
||||
});
|
||||
}
|
||||
|
||||
afterEach(async function (this: Mocha.Context) {
|
||||
if (this.currentTest?.state === 'failed') {
|
||||
console.log('Test failed');
|
||||
if (driver) {
|
||||
const source = await driver.getPageSource().catch((e) => e.message);
|
||||
console.log('Current page source:', source);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
afterEach(async () => {
|
||||
if (driver) {
|
||||
await driver.deleteSession();
|
||||
|
||||
Reference in New Issue
Block a user