Skip to content

Commit

Permalink
test(extension): fix broken smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
wklos-iohk committed May 7, 2024
1 parent 881855d commit a219665
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 @@ -25,10 +25,10 @@ class MultidelegationPageAssert {
expect(poolsCounter).to.equal(poolsCount);
};

assertSeeSearchResultsCountExact = async (items: number) => {
await browser.waitUntil(async () => (await MultidelegationPage.displayedPools.length) === items, {
assertSeeSearchResultsCountGreaterOrEqual = async (expectedPoolsCount: number) => {
await browser.waitUntil(async () => (await MultidelegationPage.displayedPools.length) >= expectedPoolsCount, {
timeout: 20_000,
timeoutMsg: `Search result does not match exact items count expected: ${items}`
timeoutMsg: `There should be ${expectedPoolsCount} or more stake pools returned`
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ class MultidelegationPage {
});
for (const ticker of poolsToMark) {
await this.fillSearch(ticker);
await MultidelegationPageAssert.assertSeeSearchResultsCountExact(1);
await MultidelegationPageAssert.assertSeeSearchResultsCountGreaterOrEqual(1);
await this.markStakePoolWithTicker(ticker);
await this.stakingPageSearchInput.click();
await clearInputFieldValue(await this.stakingPageSearchInput);
Expand Down

0 comments on commit a219665

Please sign in to comment.