Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Apr 17, 2020
1 parent 8cff5ef commit 1a368b3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {
const security = getService('security');
const globalNav = getService('globalNav');
const config = getService('config');
const log = getService('log');
const PageObjects = getPageObjects([
'common',
'discover',
Expand Down Expand Up @@ -185,9 +186,11 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {

it(`doesn't show visualize button`, async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.common.sleep(500);
await setDiscoverTimeRange();
await retry.try(async () => {
const hitCount = await PageObjects.discover.getHitCount();
log.debug('doesnt show visualize button: hit count', hitCount);
expect(parseInt(hitCount, 10)).to.be.greaterThan(0);
await PageObjects.discover.clickFieldListItem('bytes');
await PageObjects.discover.expectMissingFieldListItemVisualize('bytes');
Expand Down Expand Up @@ -278,9 +281,11 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {

it(`doesn't show visualize button`, async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.common.sleep(500);
await setDiscoverTimeRange();
await retry.try(async () => {
const hitCount = await PageObjects.discover.getHitCount();
log.debug('doesnt show visualize button: hit count', hitCount);
expect(parseInt(hitCount, 10)).to.be.greaterThan(0);
await PageObjects.discover.clickFieldListItem('bytes');
await PageObjects.discover.expectMissingFieldListItemVisualize('bytes');
Expand Down

0 comments on commit 1a368b3

Please sign in to comment.