UNPKG

create-testplane

Version:

A tool for fast and simple Testplane configuration

22 lines 869 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const plugins_1 = require("../constants/plugins"); exports.default = { name: plugins_1.TESTPLANE_RETRY_COMMAND, fn: (config) => { const defaultRule = { browsers: Object.keys(config.browsers), retryCount: 2, retryInterval: 100, }; config.plugins[plugins_1.TESTPLANE_RETRY_COMMAND] = { __comment: "https://github.com/gemini-testing/testplane-retry-command", enabled: true, rules: [ Object.assign(Object.assign({}, defaultRule), { condition: "blank-screenshot" }), Object.assign(Object.assign({}, defaultRule), { condition: "assert-view-failed", retryOnlyFirst: false }), ], }; }, }; //# sourceMappingURL=testplane-retry-command.js.map