Skip to content

Commit 4892261

Browse files
authored
Merge pull request #1211 from RedisInsight/main
RC-2
2 parents af0de1c + d0b7ef4 commit 4892261

File tree

5 files changed

+28
-23
lines changed

5 files changed

+28
-23
lines changed

redisinsight/ui/src/components/bottom-group-components/components/bottom-group-minimized/BottomGroupMinimized.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from 'react'
22
import cx from 'classnames'
3-
import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiIcon } from '@elastic/eui'
3+
import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiIcon, EuiHideFor, EuiShowFor } from '@elastic/eui'
44
import { useDispatch, useSelector } from 'react-redux'
55
import { useParams } from 'react-router-dom'
66
import { EXTERNAL_LINKS } from 'uiSrc/constants/links'
@@ -135,7 +135,12 @@ const BottomGroupMinimized = () => {
135135
>
136136
<>
137137
<EuiIcon type={SurveyIcon} className={styles.surveyIcon} />
138-
<span>We need your opinion. Please take our survey.</span>
138+
<EuiHideFor sizes={['xs', 's']}>
139+
<span>We need your opinion. Please take our survey.</span>
140+
</EuiHideFor>
141+
<EuiShowFor sizes={['xs', 's']}>
142+
<span>Survey</span>
143+
</EuiShowFor>
139144
</>
140145
</a>
141146
</div>

redisinsight/ui/src/components/query-card/styles.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import '@elastic/eui/src/global_styling/index';
44

55
.containerWrapper {
6+
min-width: 420px;
67
&:nth-of-type(even) {
78
background-color: var(--euiColorEmptyShade) !important;
89
}

redisinsight/ui/src/pages/workbench/components/wb-view/WBView/WBView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const WBView = (props: Props) => {
105105
scrollable={false}
106106
className={styles.queryPanel}
107107
initialSize={vertical[verticalPanelIds.firstPanelId] ?? 20}
108-
style={{ minHeight: '140px' }}
108+
style={{ minHeight: '140px', overflow: 'hidden' }}
109109
>
110110
<QueryWrapper
111111
query={script}

tests/e2e/tests/critical-path/browser/filtering.e2e.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,21 @@ test
8787
await t.expect(browserPage.keysSummary.textContent).contains('Total', 'The filter is removed');
8888
});
8989
test
90-
.after(async() => {
90+
.after(async() => {
9191
//Clear and delete database
92-
await browserPage.deleteKeyByName(keyName);
93-
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
94-
})('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name', async t => { //Check filtering labes
95-
keyName = chance.word({ length: 10 });
96-
//Add new key
97-
await browserPage.addStringKey(keyName);
98-
//Check the filtering starts by press Enter
99-
await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText');
100-
await t.pressKey('enter');
101-
await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set');
102-
//Check the filtering starts by clicks the control
103-
await common.reloadPage();
104-
await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText');
105-
await t.click(browserPage.searchButton);
106-
await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set');
107-
});
92+
await browserPage.deleteKeyByName(keyName);
93+
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
94+
})('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name', async t => { //Check filtering labes
95+
keyName = chance.word({ length: 10 });
96+
//Add new key
97+
await browserPage.addStringKey(keyName);
98+
//Check the filtering starts by press Enter
99+
await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText');
100+
await t.pressKey('enter');
101+
await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set');
102+
//Check the filtering starts by clicks the control
103+
await common.reloadPage();
104+
await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText');
105+
await t.click(browserPage.searchButton);
106+
await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set');
107+
});

tests/e2e/tests/regression/browser/survey-link.e2e.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { acceptLicenseTermsAndAddDatabaseApi } from '../../../helpers/database';
22
import { env, rte } from '../../../helpers/constants';
3-
import { BrowserPage, SlowLogPage, MyRedisDatabasePage } from '../../../pageObjects';
3+
import { BrowserPage, MyRedisDatabasePage } from '../../../pageObjects';
44
import { commonUrl, ossStandaloneConfig } from '../../../helpers/conf';
55
import { Common } from '../../../helpers/common';
66
import { deleteAllDatabasesApi } from '../../../helpers/api/api-database';
77

88
const browserPage = new BrowserPage();
9-
const slowLogPage = new SlowLogPage();
109
const myRedisDatabasePage = new MyRedisDatabasePage();
1110
const common = new Common();
1211
const externalPageLink = 'https://www.surveymonkey.com/r/redisinsight';
@@ -32,7 +31,7 @@ test('Verify that user can use survey link', async t => {
3231
await t.click(myRedisDatabasePage.workbenchButton);
3332
await t.expect(browserPage.userSurveyLink.visible).ok('Survey Link is not displayed');
3433
// Slow Log page
35-
await t.click(slowLogPage.slowLogPageButton);
34+
await t.click(myRedisDatabasePage.analysisPageButton);
3635
await t.expect(browserPage.userSurveyLink.visible).ok('Survey Link is not displayed');
3736
// PubSub page
3837
await t.click(myRedisDatabasePage.pubSubButton);

0 commit comments

Comments
 (0)