This commit is contained in:
Kismet Hasanaj
2026-05-02 20:07:02 +02:00
parent ce8672e283
commit 34dc9aec52
9428 changed files with 1733330 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "step", {
enumerable: true,
get: function() {
return step;
}
});
const _test = require("@playwright/test");
async function step(_testInfo, props, handler) {
let result;
let reportedError;
try {
await _test.test.step(props.title, async ()=>{
result = await handler(({ error })=>{
reportedError = error;
if (reportedError) {
throw reportedError;
}
});
});
} catch (error) {
if (error !== reportedError) {
throw error;
}
}
return result;
}
//# sourceMappingURL=step.js.map