testplane
testplane copied to clipboard
Некорректный тип browser.executionContext.hermioneCtx
trafficstars
Описание типа в hermione/build/src/browser/types.d.ts:
executionContext: (RunnerTest | RunnerHook) & {
hermioneCtx: {
assertViewResults: Array<AssertViewResult>;
},
....
};
делаю:
console log(browser.executionContext.hermioneCtx)
в случае если нет ошибок, получаю:
{}
В случае ошибки assertView получаю:
{
"_results": [
"ImageDiffError": "images are different for \"otkrili_stranitsu_nastroyki_na_ovnere\" state...",
"stateName": "otkrili_stranitsu_nastroyki_na_ovnere",
...
]
}
Отсутствие поля assertViewResults недопустимо, согласно типу hermioneCtx.
Или оно было переименовано почему-то в _results?
И это поведение поменялось из версии 7 в версию 8.
Версия hermione: 8.0.5
Привет. Проблему воспроизвел. В ближайшее время исправим.
Fixed in [email protected] (and [email protected])