@testplane/retry-command
Обзор
Используйте плагин @testplane/retry-command, чтобы ретраить отдельные команды на низком уровне.
Установка
npm install -D @testplane/retry-command
Настройка
Необходимо подключить плагин в разделе plugins конфига testplane:
module.exports = {
plugins: {
"@testplane/retry-command": {
enabled: true,
rules: [
{
condition: "blank-screenshot",
browsers: ["MicrosoftEdge"],
retryCount: 5,
retryInterval: 120,
},
{
condition: "assert-view-failed",
browsers: ["Chrome"],
retryCount: 1,
retryOnlyFirst: true,
},
],
},
// другие плагины testplane...
},
// другие настройки testplane...
};