Skip to content

Commit

Permalink
PMM-7: Fix ps integration (#898)
Browse files Browse the repository at this point in the history
* PMM-7: Fix checking for ps tests

* PMM-7: Log count of queries

* PMM-7: Log count of queries

* PMM-7: Log count of queries

* PMM-7: Remove log commands
  • Loading branch information
peterSirotnak authored Nov 18, 2024
1 parent dc69ff0 commit 3c18bbf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/qa-integration/pmm_ps_integration_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,15 @@ Scenario(

I.amOnPage(I.buildUrlWithParams(queryAnalyticsPage.url, { from: 'now-1h', refresh: '5s' }));
queryAnalyticsPage.waitForLoaded();
await queryAnalyticsPage.filters.selectFilter(dbName, 120000);
await queryAnalyticsPage.filters.selectFilter(dbName);
queryAnalyticsPage.waitForLoaded();
I.waitForText('16', 240, queryAnalyticsPage.data.elements.totalItems);
for (let i = 0; i <= 24; i++) {
const countOfQueries = parseInt((await I.grabTextFrom(queryAnalyticsPage.data.elements.totalItems)).split('of ')[1], 10);

I.wait(10);
if (countOfQueries === 17) continue;

if (i === 24) assert.equal(countOfQueries, 17, 'Count of queries is incorrect');
}
},
).retry(1);

0 comments on commit 3c18bbf

Please sign in to comment.