Skip to content

Commit 36a6435

Browse files
Merge pull request #465 from RedisInsight/e2e/fix-tests
e2e tests fixes
2 parents 15a109c + 331177b commit 36a6435

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

redisinsight/ui/src/components/virtual-tree/components/Node/Node.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const Node = ({
5858
onKeyDown={handleKeyDown}
5959
tabIndex={0}
6060
onFocus={() => {}}
61-
data-testid={fullName}
61+
data-testid={`node-item_${fullName}`}
6262
>
6363
<div className={styles.nodeName}>
6464
{!isLeaf && (

tests/e2e/tests/critical-path/database/modules.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rte } from '../../../helpers/constants';
1+
import { rte, env } from '../../../helpers/constants';
22
import {
33
acceptLicenseTerms,
44
addNewStandaloneDatabase,
@@ -25,7 +25,7 @@ fixture `Database modules`
2525
await deleteDatabase(ossStandaloneRedisearch.databaseName);
2626
})
2727
test
28-
.meta({ rte: rte.standalone })
28+
.meta({ rte: rte.standalone, env: env.web })
2929
('Verify that user can see DB modules on DB list page for Standalone DB', async t => {
3030
//Check module column on DB list page
3131
await t.expect(myRedisDatabasePage.moduleColumn.exists).ok('Module column');

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ test
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 => {
4343
let scannedValue = 10;
4444
await t.click(browserPage.treeViewButton);
45+
await t.expect(browserPage.scannedValue.visible).ok('The database scanned value is displayed', { timeout: 40000 });
4546
await t.expect(browserPage.scannedValue.textContent).eql(`${scannedValue} 000`, 'The database is automatically scanned by 10K keys');
4647
//Verify that user can use the "Scan More" button to search per another 10000 keys
4748
for (let i = 0; i < 10; i++){
4849
scannedValue = scannedValue + 10;
4950
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+
await t.expect(browserPage.scannedValue.textContent).eql(`${scannedValue} 000`, `The database is automatically scanned by ${scannedValue} 000 keys`, { timeout: 40000 });
5152
}
5253
});
5354
test

0 commit comments

Comments
 (0)