Skip to content

Commit aae6f26

Browse files
e2e - fix tree view
1 parent d2fc07c commit aae6f26

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

tests/e2e/tests/critical-path/tree-view/tree-view.e2e.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,15 @@ test
4040
test
4141
.meta({ rte: rte.standalone })
4242
('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;
4344
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');
4646
//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+
}
5852
});
5953
test
6054
.after(async() => {

tests/e2e/tests/regression/tree-view/tree-view.e2e.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@ test
6262
await t.expect(browserPage.treeViewDeviceFolder.nth(2).textContent).notEql(keyFolder, 'The key folder is removed from the tree view');
6363
await t.expect(browserPage.treeViewDeviceKyesCount.textContent).notEql(numberOfKeys, 'The number of keys is recalculated');
6464
});
65+
test
66+
.meta({ rte: rte.standalone })
67+
('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 => {
68+
await t.click(browserPage.treeViewButton);
69+
//Verify the default separator
70+
await t.expect(browserPage.treeViewSeparator.textContent).eql(':', 'The “:” (colon) used as a default separator for namespaces');
71+
//Verify the number of keys found
72+
await t.expect(browserPage.treeViewKeysNumber.visible).ok('The user can see the number of keys');
73+
});

0 commit comments

Comments
 (0)