This repository has been archived on 2026-05-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
novarix-networks-homepage/node_modules/next/dist/experimental/testmode/playwright/step.js
T
Kismet Hasanaj 34dc9aec52 .
2026-05-02 20:07:02 +02:00

32 lines
762 B
JavaScript

"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