testplane icon indicating copy to clipboard operation
testplane copied to clipboard

Некорректный тип browser.executionContext.hermioneCtx

Open dicrtarasov opened this issue 1 year ago • 1 comments
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

dicrtarasov avatar Feb 03 '24 22:02 dicrtarasov

Привет. Проблему воспроизвел. В ближайшее время исправим.

DudaGod avatar Feb 07 '24 13:02 DudaGod

Fixed in [email protected] (and [email protected])

DudaGod avatar May 15 '24 12:05 DudaGod