Skip to content

Commit 2a9dc99

Browse files
committed
upd for flaky test
1 parent d8a3a45 commit 2a9dc99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/e2e/tests/critical-path/database-overview/database-index.e2e.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,5 @@ test('Switching between indexed databases', async t => {
147147

148148
// Verify that user can see the database index before the report date in Database Analysis
149149
await t.click(memoryEfficiencyPage.selectedReport);
150-
await t.expect(memoryEfficiencyPage.reportItem.nth(0).textContent).contains('[db1]', 'Index not displayed in report name');
151-
await t.expect(memoryEfficiencyPage.reportItem.nth(1).textContent).notContains('[db', 'Index displayed for 0 index in report name');
150+
await t.expect(memoryEfficiencyPage.reportItem.withText('[db1]').count).eql(1, 'Index not displayed in report name');
152151
});

0 commit comments

Comments
 (0)