Skip to content

Commit

Permalink
Increase sleep time in functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaStoeva committed Oct 15, 2024
1 parent d108302 commit 157c755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.ingestPipelines.clickAddDatabaseButton();

// Wait for new row to gets displayed
await pageObjects.common.sleep(250);
await pageObjects.common.sleep(1000);

const databasesList = await pageObjects.ingestPipelines.getGeoipDatabases();
const databaseExists = Boolean(
Expand All @@ -58,7 +58,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.ingestPipelines.clickAddDatabaseButton();

// Wait for new row to gets displayed
await pageObjects.common.sleep(250);
await pageObjects.common.sleep(1000);

const databasesList = await pageObjects.ingestPipelines.getGeoipDatabases();
const databaseExists = Boolean(
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/functional/page_objects/ingest_pipelines_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function IngestPipelinesPageProvider({ getService, getPageObjects }: FtrP
await testSubjects.setValue('databaseTypeSelect', databaseType);

// Wait for the rest of the fields to get displayed
await pageObjects.common.sleep(250);
await pageObjects.common.sleep(1000);
expect(await testSubjects.exists('databaseNameSelect')).to.be(true);

if (maxmind) {
Expand All @@ -146,7 +146,7 @@ export function IngestPipelinesPageProvider({ getService, getPageObjects }: FtrP

async clickAddDatabaseButton() {
// Wait for button to get enabled
await pageObjects.common.sleep(250);
await pageObjects.common.sleep(1000);
await testSubjects.click('addGeoipDatabaseSubmit');
},

Expand Down

0 comments on commit 157c755

Please sign in to comment.