Skip to content

Commit

Permalink
[Discover] Fix api usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Sep 22, 2022
1 parent 93e1d35 commit a49b69a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/functional/apps/discover/classic/_doc_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.timePicker.setDefaultAbsoluteRange();
});

describe('classic table in window 900x700', async function () {
describe('classic table in window 900x900', async function () {
before(async () => {
await kibanaServer.uiSettings.update({ 'doc_table:legacy': true });
await browser.setWindowSize(900, 700);
await browser.setWindowSize(900, 900);
await PageObjects.common.navigateToApp('discover');
await PageObjects.discover.waitUntilSearchingHasFinished();
});
Expand All @@ -87,10 +87,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
});

describe('classic table in window 600x700', async function () {
describe('classic table in window 600x900', async function () {
before(async () => {
await kibanaServer.uiSettings.update({ 'doc_table:legacy': true });
await browser.setWindowSize(600, 700);
await browser.setWindowSize(600, 900);
await PageObjects.common.navigateToApp('discover');
await PageObjects.discover.waitUntilSearchingHasFinished();
});
Expand Down Expand Up @@ -237,7 +237,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
for (const column of extraColumns) {
await PageObjects.discover.clearFieldSearchInput();
await PageObjects.discover.findFieldByName(column);
await retry.try(async function () {
await retry.waitFor('field to appear', async function () {
return await testSubjects.exists(`field-${column}`);
});
await PageObjects.discover.clickFieldListItemAdd(column);
Expand All @@ -253,7 +253,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
for (const column of extraColumns) {
await PageObjects.discover.clearFieldSearchInput();
await PageObjects.discover.findFieldByName(column);
await retry.try(async function () {
await retry.waitFor('field to appear', async function () {
return await testSubjects.exists(`field-${column}`);
});
await PageObjects.discover.clickFieldListItemAdd(column);
Expand Down

0 comments on commit a49b69a

Please sign in to comment.