@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
28 lines • 955 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportHelper = void 0;
const node_fetch_1 = require("node-fetch");
class ReportHelper {
api;
constructor(api) {
this.api = api;
}
async report(testInfo) {
if (testInfo.retry > 0 && process.env.CI) {
await (0, node_fetch_1.default)("https://functionapp-221110123128.azurewebsites.net/api/PlaywrightTableData", {
method: 'POST',
headers: {
'content-type': 'application/json;charset=UTF-8'
},
body: JSON.stringify({
"TestName": testInfo.title,
"CommitId": process.env.CommitId,
"RetryNumber": testInfo.retry,
"OS": process.env.AgentOs
})
});
}
}
}
exports.ReportHelper = ReportHelper;
//# sourceMappingURL=ReportHelper.js.map
;