Skip to content

Commit

Permalink
fix user agent module
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed May 8, 2018
1 parent 1827980 commit 7186e62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -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');
Expand Down

0 comments on commit 7186e62

Please sign in to comment.