Skip to content

Commit e13376b

Browse files
committed
add additional check
1 parent 42e6e29 commit e13376b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ test
3232
await t.expect(myRedisDatabasePage.moduleColumn.exists).ok('Module column not found');
3333
// Verify that user can see the following sorting order: Search, JSON, Graph, TimeSeries, Bloom, Gears, AI for modules
3434
const databaseLine = myRedisDatabasePage.dbNameList.withExactText(ossStandaloneRedisearch.databaseName).parent('tr');
35+
await t.expect(databaseLine.visible).ok('Database not found in db list');
3536
const moduleIcons = databaseLine.find('[data-testid^=Redi]');
3637
const numberOfIcons = moduleIcons.count;
3738
for (let i = 0; i < await numberOfIcons; i++) {
3839
const moduleName = moduleIcons.nth(i).getAttribute('data-testid');
39-
await t.expect(moduleName).eql(await moduleList[i].getAttribute('data-testid'), 'Correct icon not found');
40+
await t.expect(moduleName).eql(await moduleList[i].getAttribute('data-testid'), `${moduleName} icon not found`);
4041
}
4142
//Minimize the window to check quantifier
4243
await t.resizeWindow(1000, 700);

0 commit comments

Comments
 (0)