tests(smoke): check lhr.environment exists in version check (#14320)
This commit is contained in:
Родитель
50296d8106
Коммит
bb747afd54
|
@ -259,6 +259,10 @@ function pruneExpectations(localConsole, lhr, expected, reportOptions) {
|
|||
* @param {*} obj
|
||||
*/
|
||||
function failsChromeVersionCheck(obj) {
|
||||
// LHR never actually run, so we can't know. Better to not prune
|
||||
// things than to fail loudly when accessing lhr.environment.
|
||||
if (!lhr.environment) return false;
|
||||
|
||||
return !chromiumVersionCheck({
|
||||
version: getChromeVersionString(),
|
||||
min: obj._minChromiumVersion,
|
||||
|
|
Загрузка…
Ссылка в новой задаче