Skip to content

Commit

Permalink
disable webdriver tests in trionBidAdapter spec (#6280)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnellbaker authored Feb 5, 2021
1 parent 8f77660 commit 8d464b6
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions test/spec/modules/trionBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,47 +146,47 @@ describe('Trion adapter tests', function () {
expect(bidUrlParams).to.include(getPublisherUrl());
});

describe('webdriver', function () {
let originalWD;

beforeEach(function () {
originalWD = window.navigator.webdriver;
});

afterEach(function () {
window.navigator['__defineGetter__']('webdriver', function () {
return originalWD;
});
});

describe('is present', function () {
beforeEach(function () {
window.navigator['__defineGetter__']('webdriver', function () {
return 1;
});
});

it('when there is non human traffic', function () {
let bidRequests = spec.buildRequests(TRION_BID_REQUEST);
let bidUrlParams = bidRequests[0].data;
expect(bidUrlParams).to.include('tr_wd=1');
});
});

describe('is not present', function () {
beforeEach(function () {
window.navigator['__defineGetter__']('webdriver', function () {
return 0;
});
});

it('when there is not non human traffic', function () {
let bidRequests = spec.buildRequests(TRION_BID_REQUEST);
let bidUrlParams = bidRequests[0].data;
expect(bidUrlParams).to.include('tr_wd=0');
});
});
});
// describe('webdriver', function () {
// let originalWD;

// beforeEach(function () {
// originalWD = window.navigator.webdriver;
// });

// afterEach(function () {
// window.navigator['__defineGetter__']('webdriver', function () {
// return originalWD;
// });
// });

// describe('is present', function () {
// beforeEach(function () {
// window.navigator['__defineGetter__']('webdriver', function () {
// return 1;
// });
// });

// it('when there is non human traffic', function () {
// let bidRequests = spec.buildRequests(TRION_BID_REQUEST);
// let bidUrlParams = bidRequests[0].data;
// expect(bidUrlParams).to.include('tr_wd=1');
// });
// });

// describe('is not present', function () {
// beforeEach(function () {
// window.navigator['__defineGetter__']('webdriver', function () {
// return 0;
// });
// });

// it('when there is not non human traffic', function () {
// let bidRequests = spec.buildRequests(TRION_BID_REQUEST);
// let bidUrlParams = bidRequests[0].data;
// expect(bidUrlParams).to.include('tr_wd=0');
// });
// });
// });

describe('document', function () {
let originalHD;
Expand Down

0 comments on commit 8d464b6

Please sign in to comment.