|
40 | 40 | test
|
41 | 41 | .meta({ rte: rte.standalone })
|
42 | 42 | ('Verify that user can see DB is automatically scanned by 10K keys in the background, user can see the number of keys scanned and use the "Scan More" button to search per another 10000 keys', async t => {
|
| 43 | + let scannedValue = 10; |
43 | 44 | await t.click(browserPage.treeViewButton);
|
44 |
| - //Verify the scanned value |
45 |
| - await t.expect(browserPage.scannedValue.textContent).eql('10 000', 'The database is automatically scanned by 10K keys'); |
| 45 | + await t.expect(browserPage.scannedValue.textContent).eql(`${scannedValue} 000`, 'The database is automatically scanned by 10K keys'); |
46 | 46 | //Verify that user can use the "Scan More" button to search per another 10000 keys
|
47 |
| - await t.click(browserPage.scanMoreButton); |
48 |
| - await t.expect(browserPage.scannedValue.textContent).contains('20 000', 'The database is automatically scanned by 10K keys'); |
49 |
| - }); |
50 |
| -test |
51 |
| - .meta({ rte: rte.standalone }) |
52 |
| - ('Verify that user can see that “:” (colon) used as a default separator for namespaces and see the number of keys found per each namespace', async t => { |
53 |
| - await t.click(browserPage.treeViewButton); |
54 |
| - //Verify the default separator |
55 |
| - await t.expect(browserPage.treeViewSeparator.textContent).eql(':', 'The “:” (colon) used as a default separator for namespaces'); |
56 |
| - //Verify the number of keys found |
57 |
| - await t.expect(browserPage.treeViewKeysNumber.visible).ok('The user can see the number of keys'); |
| 47 | + for (let i = 0; i < 10; i++){ |
| 48 | + scannedValue = scannedValue + 10; |
| 49 | + await t.click(browserPage.scanMoreButton); |
| 50 | + await t.expect(await browserPage.scannedValue.withExactText(`${scannedValue} 000`).exists).ok('The database is automatically scanned by 10K keys'); |
| 51 | + } |
58 | 52 | });
|
59 | 53 | test
|
60 | 54 | .after(async() => {
|
|
0 commit comments