fix `Authentication fails on version 1.8.5+` (close #2344) (#2459)
fix `Authentication fails on version 1.8.5+` (close #2344) (#2459)

* fix `Authentication fails on version 1.8.5+` (close #2344)

* refactoring
LavrovArtem/testcafe-hammerhead,LavrovArtem/testcafe-hammerhead,miherlosev/testcafe-hammerhead,miherlosev/testcafe-hammerhead,LavrovArtem/testcafe-hammerhead,DevExpress/testcafe-hammerhead,LavrovArtem/testcafe-hammerhead,DevExpress/testcafe-hammerhead,DevExpress/testcafe-hammerhead,miherlosev/testcafe-hammerhead,miherlosev/testcafe-hammerhead,DevExpress/testcafe-hammerhead