From 7186e62ea070d7e922e41f93977533c8f4a027c5 Mon Sep 17 00:00:00 2001 From: "alexey.kamaev" Date: Tue, 8 May 2018 17:20:35 +0300 Subject: [PATCH] fix user agent module --- .../regression/gh-1054/testcafe-fixtures/index.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/fixtures/regression/gh-1054/testcafe-fixtures/index.test.js b/test/functional/fixtures/regression/gh-1054/testcafe-fixtures/index.test.js index dc7d4c16384..8e78ce69072 100644 --- a/test/functional/fixtures/regression/gh-1054/testcafe-fixtures/index.test.js +++ b/test/functional/fixtures/regression/gh-1054/testcafe-fixtures/index.test.js @@ -1,5 +1,5 @@ import { ClientFunction, Selector } from 'testcafe'; -import bowser from 'bowser'; +import userAgent from 'useragent'; fixture `Check the target element value when the first input event raised` .page('http://localhost:3000/fixtures/regression/gh-1054/pages/index.html'); @@ -21,8 +21,8 @@ test('Type text in the content editable element', async t => { .typeText('div', 'text', { replace: true }) .expect(Selector('div').textContent).eql('text'); - var userAgent = await getUserAgent(); - var isIE = bowser._detect(userAgent).msie; + var userAgentStr = await getUserAgent(); + var isIE = userAgent.is(userAgentStr).ie; if (!isIE) await t.expect(await getFirstValue()).eql('t');