Skip to content

Commit 1981a61

Browse files
authored
Merge pull request #2199 from RedisInsight/e2e/bugfix/nightly-tests-fixes
fixes for unstable tests
2 parents 07709bf + e0abe8e commit 1981a61

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

tests/e2e/pageObjects/browser-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export class BrowserPage extends InstancePage {
488488
async selectFilterGroupType(groupName: string): Promise<void> {
489489
await t
490490
.click(this.filterByKeyTypeDropDown)
491-
.click((this.filterOptionType).withExactText(groupName));
491+
.click(this.filterOptionType.withExactText(groupName));
492492
}
493493

494494
/**

tests/e2e/pageObjects/components/browser/bulk-actions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export class BulkActions {
4141
* Open Bulk Actions and confirm deletion
4242
*/
4343
async startBulkDelete(): Promise<void> {
44+
// Wait for Bulk actions animation ends
45+
await t.wait(1000);
4446
await t
4547
.click(this.actionButton)
4648
.click(this.bulkApplyButton);

tests/e2e/pageObjects/pub-sub-page.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export class PubSubPage extends InstancePage {
4848
*/
4949
async subsribeToChannelAndPublishMessage(channel: string, message: string): Promise<void> {
5050
await t.click(this.subscribeButton);
51+
// Wait for pubsub loading
52+
await t.wait(1000);
5153
await this.publishMessage(channel, message);
5254
await t.expect((this.pubSubPageContainer.find('[data-testid^=row]').withText('message')).exists).ok('Message is not displayed');
5355
}

tests/e2e/tests/critical-path/memory-efficiency/recommendations.e2e.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ test
157157
keyName = `recomKey-${Common.generateWord(10)}`;
158158
const jsonValue = '{"name":"xyz"}';
159159
await browserPage.addJsonKey(keyName, jsonValue);
160+
// Check that new key is displayed in the list
161+
await browserPage.searchByKeyName(keyName);
162+
await t.expect(await browserPage.isKeyIsDisplayedInTheList(keyName)).ok('The JSON key is not added');
160163
// Go to Analysis Tools page
161164
await t.click(myRedisDatabasePage.NavigationPanel.analysisPageButton);
162165
await t.click(memoryEfficiencyPage.newReportBtn);

0 commit comments

Comments
 (0)