Skip to content

Commit 12eb024

Browse files
committed
fix: '>=' instead of '=' for search results
1 parent a5ec3a1 commit 12eb024

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/specs/search/prod_search_new-indexes.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('Search a keyword with filters "within=documents" and "date"', () => {
5151
count = await Page.getElementText(searchCount);
5252
count = count.replace(/,/, '');
5353
console.log('count=', count);
54-
assert.equal(count, 20712, 'Current result did not match expected result');
54+
assert.isAtLeast(Number(count), 20712, 'Current result did not match expected result');
5555
});
5656

5757
it('query "search?q=China" should be performed within expected duration', async () => {
@@ -67,7 +67,7 @@ describe('Search a keyword with filters "within=documents" and "date"', () => {
6767
count = await Page.getElementText(searchCount);
6868
count = count.replace(/,/, '');
6969
console.log('count=', count);
70-
assert.equal(count, 5090, 'Current result did not match expected result');
70+
assert.isAtLeast(Number(count), 5090, 'Current result did not match expected result');
7171
});
7272

7373
it('query "search?q=Tokyo" should be performed within expected duration', async () => {

0 commit comments

Comments
 (0)